diff options
| author | Quentin Carbonneaux | 2014-08-27 11:23:28 -0400 |
|---|---|---|
| committer | Quentin Carbonneaux | 2014-08-27 11:23:28 -0400 |
| commit | 6568e5e5013288e60f09b9566385ad8165691f52 (patch) | |
| tree | 603cce3b014c7d96f69cbf12803e797df9342b00 | |
| parent | 49f521b8a7e0aae31ff67bfa121ae6acf02fba4f (diff) | |
remove useless dirty bit in x11 module
| -rw-r--r-- | x11.c | 11 |
1 files changed, 2 insertions, 9 deletions
@@ -32,7 +32,6 @@ static Window win; static Pixmap pbuf; XftDraw *xft; static int w, h; -static int dirty; static int init() @@ -129,7 +128,6 @@ drawtext(GRect *clip, Rune *str, int len, int x, int y, GColor c) // set clip! xftcolor(&col, c); XftDrawString32(xft, &col, font, x, y, (FcChar32 *)str, len); - dirty = 1; } static void @@ -158,7 +156,6 @@ drawrect(GRect *clip, int x, int y, int w, int h, GColor c) xftcolor(&col, c); XftDrawRect(xft, &col, x, y, w, h); } - dirty = 1; } static void @@ -198,11 +195,8 @@ textwidth(Rune *str, int len) static void sync() { - if (dirty) { - XCopyArea(d, pbuf, win, gc, 0, 0, w, h, 0, 0); - XFlush(d); - dirty = 0; - } + XCopyArea(d, pbuf, win, gc, 0, 0, w, h, 0, 0); + XFlush(d); } static int @@ -216,7 +210,6 @@ nextevent(GEvent *gev) switch (e.type) { case Expose: - dirty = 1; sync(); continue; |
