From http://www.jwz.org/xscreensaver/xscreensaver-5.38.tar.gz
[xscreensaver] / hacks / glx / erase-gl.c
1 /* Copyright (c) 2017 Dave Odell <dmo2118@gmail.com>
2  *
3  * Permission to use, copy, modify, distribute, and sell this software and its
4  * documentation for any purpose is hereby granted without fee, provided that
5  * the above copyright notice appear in all copies and that both that
6  * copyright notice and this permission notice appear in supporting
7  * documentation.  No representations are made about the suitability of this
8  * software for any purpose.  It is provided "as is" without express or 
9  * implied warranty.
10  *
11  * xlockmore.c has references to erase_window, but it never calls these when
12  * running OpenGL hacks. Using this in place of regular utils/erase.c saves a
13  * tiny bit of code/disk space with a native X11 build, where everything is
14  * statically linked together.
15  *
16  * (Linux, amd64, CFLAGS='-O2 -g')
17  * Before: -rwxr-xr-x 1 david david 545848 Aug  9 20:42 hilbert
18  * After:  -rwxr-xr-x 1 david david 519344 Aug  9 20:41 hilbert
19  *
20  * (Linux, amd64, CFLAGS=-O2)
21  * Before: -rwxr-xr-x 1 david david 150168 Aug  9 20:40 hilbert
22  * After:  -rwxr-xr-x 1 david david 141256 Aug  9 20:39 hilbert
23  */
24
25 #include "utils.h"
26 #include "erase.h"
27
28 void
29 eraser_free (eraser_state *st)
30 {
31 }
32
33
34 eraser_state *
35 erase_window (Display *dpy, Window window, eraser_state *st)
36 {
37   return st;
38 }