xzoom

A simple screen magnifier for X11.
git clone git://r-36.net/xzoom
Log | Files | Refs

commit 57faa9486d0b2fb31a184501f5267461d2febccc
parent 7c3757824e5bc5f10e55dbf6a338ec3569c7b323
Author: Phil Carmody <pc+xzoom@asdf.org>
Date:   Thu, 21 Nov 2013 17:38:43 +0200

xzoom: remove single-use macro that provides no benefit

DRAW_FRAME() is only called from one place, and only does one simple
thing, therefore having a macro for it achieves nothing.

Signed-off-by: Phil Carmody <pc+xzoom@asdf.org>
Signed-off-by: Christoph Lohmann <20h@r-36.net>

Diffstat:
xzoom.c | 7+------
1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/xzoom.c b/xzoom.c @@ -127,11 +127,6 @@ timeout_func(int signum) { signum = signum; /* UNUSED */ } -#ifdef FRAME -#define DRAW_FRAME() \ - XDrawRectangle(dpy, RootWindowOfScreen(scr), framegc, xgrab, ygrab, width[SRC]-1, height[SRC]-1) -#endif - void allocate_images(void) { int i; @@ -855,7 +850,7 @@ main(int argc, char **argv) { #endif #ifdef FRAME if(buttonpressed) { /* show the frame */ - DRAW_FRAME(); + XDrawRectangle(dpy, RootWindowOfScreen(scr), framegc, xgrab, ygrab, width[SRC]-1, height[SRC]-1); XSync(dpy, False); } #endif