summaryrefslogtreecommitdiffstats
path: root/hacks/glx/erase-gl.c
blob: 8515dd9851a2fa44084ce6d996821847212c3041 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/* Copyright (c) 2017 Dave Odell <dmo2118@gmail.com>
 *
 * 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;
}