[waffle] [PATCH 1/3] examples/gl_basic: add WINDOW_WIDTH/WINDOW_HEIGHT defines

Jordan Justen jordan.l.justen at intel.com
Wed Aug 8 16:18:34 PDT 2012


Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
---
 examples/gl_basic.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/examples/gl_basic.c b/examples/gl_basic.c
index b300e4e..e9744c4 100644
--- a/examples/gl_basic.c
+++ b/examples/gl_basic.c
@@ -111,6 +111,9 @@ enum {
     GL_COLOR_BUFFER_BIT = 0x00004000,
 };
 
+#define WINDOW_WIDTH  320
+#define WINDOW_HEIGHT 240
+
 static void (*glClearColor)(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
 static void (*glClear)(GLbitfield mask);
 
@@ -357,7 +360,7 @@ main(int argc, char **argv)
     if (!ctx)
         error_waffle();
 
-    window = waffle_window_create(config, 320, 240);
+    window = waffle_window_create(config, WINDOW_WIDTH, WINDOW_HEIGHT);
     if (!window)
         error_waffle();
 
-- 
1.7.9.5



More information about the waffle mailing list