Browse Source

Increase the size of the rectangle and FPS

rexim 4 years ago
parent
commit
92062353e3
1 changed files with 4 additions and 2 deletions
  1. 4 2
      main.c

+ 4 - 2
main.c

@@ -8,7 +8,9 @@
 
 
 #define WIDTH 800
 #define WIDTH 800
 #define HEIGHT 600
 #define HEIGHT 600
-#define FPS 120
+#define FPS 240
+#define RECT_WIDTH 300
+#define RECT_HEIGHT 300
 
 
 int main(void)
 int main(void)
 {
 {
@@ -69,7 +71,7 @@ int main(void)
         }
         }
 
 
         XClearArea(display, window, 0, 0, WIDTH, HEIGHT, False);
         XClearArea(display, window, 0, 0, WIDTH, HEIGHT, False);
-        XFillRectangle(display, window, gc, rect_x, rect_y, 100, 100);
+        XFillRectangle(display, window, gc, rect_x, rect_y, RECT_WIDTH, RECT_HEIGHT);
 
 
         rect_x += 1;
         rect_x += 1;
         rect_y += 1;
         rect_y += 1;