X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Ferase-gl.c;fp=hacks%2Fglx%2Ferase-gl.c;h=8515dd9851a2fa44084ce6d996821847212c3041;hp=0000000000000000000000000000000000000000;hb=39809ded547bdbb08207d3e514950425215b4410;hpb=4361b69d3178d7fc98d0388f9a223af6c2651aba diff --git a/hacks/glx/erase-gl.c b/hacks/glx/erase-gl.c new file mode 100644 index 00000000..8515dd98 --- /dev/null +++ b/hacks/glx/erase-gl.c @@ -0,0 +1,38 @@ +/* Copyright (c) 2017 Dave Odell + * + * Permission to use, copy, modify, distribute, and sell this software and its + * documentation for any purpose is hereby granted without fee, provided that + * the above copyright notice appear in all copies and that both that + * copyright notice and this permission notice appear in supporting + * documentation. No representations are made about the suitability of this + * software for any purpose. It is provided "as is" without express or + * implied warranty. + * + * xlockmore.c has references to erase_window, but it never calls these when + * running OpenGL hacks. Using this in place of regular utils/erase.c saves a + * tiny bit of code/disk space with a native X11 build, where everything is + * statically linked together. + * + * (Linux, amd64, CFLAGS='-O2 -g') + * Before: -rwxr-xr-x 1 david david 545848 Aug 9 20:42 hilbert + * After: -rwxr-xr-x 1 david david 519344 Aug 9 20:41 hilbert + * + * (Linux, amd64, CFLAGS=-O2) + * Before: -rwxr-xr-x 1 david david 150168 Aug 9 20:40 hilbert + * After: -rwxr-xr-x 1 david david 141256 Aug 9 20:39 hilbert + */ + +#include "utils.h" +#include "erase.h" + +void +eraser_free (eraser_state *st) +{ +} + + +eraser_state * +erase_window (Display *dpy, Window window, eraser_state *st) +{ + return st; +}