From 929e6a1f1ccdb6a217c0eb35b6721830a25c4db4 Mon Sep 17 00:00:00 2001 From: Wesley Kerfoot Date: Thu, 27 Jun 2019 01:35:53 -0400 Subject: [PATCH] Clear the window on each tick just to show it properly --- blit.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/blit.c b/blit.c index 2060fe3..73b58e9 100644 --- a/blit.c +++ b/blit.c @@ -100,9 +100,9 @@ main(void) { } - if (event.type == KeyPress) { - break; - } + //if (event.type == KeyPress) { + //break; + //} for(int x = 0; x < 100; x++) { for(int y = 0; y < 100; y++) { @@ -112,6 +112,8 @@ main(void) { factor++; + XClearWindow(display, window); + XCopyArea(display, pixmap, window,