Browse Source

Clear the window on each tick just to show it properly

master
Wesley Kerfoot 5 years ago
parent
commit
929e6a1f1c
  1. 8
      blit.c

8
blit.c

@ -100,9 +100,9 @@ main(void) {
} }
if (event.type == KeyPress) { //if (event.type == KeyPress) {
break; //break;
} //}
for(int x = 0; x < 100; x++) { for(int x = 0; x < 100; x++) {
for(int y = 0; y < 100; y++) { for(int y = 0; y < 100; y++) {
@ -112,6 +112,8 @@ main(void) {
factor++; factor++;
XClearWindow(display, window);
XCopyArea(display, XCopyArea(display,
pixmap, pixmap,
window, window,

Loading…
Cancel
Save