1 /* Copyright (c) 2017 Dave Odell <dmo2118@gmail.com>
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
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.
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
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
29 eraser_free (eraser_state *st)
35 erase_window (Display *dpy, Window window, eraser_state *st)