From 80ef2bca8fe2e02b520d0020e4c9ab6fad71338c Mon Sep 17 00:00:00 2001 From: Rcmaniac25 Date: Wed, 11 Sep 2013 21:31:54 -0400 Subject: [PATCH] Placeholder for window sizes Prevent navigator event 0x0 to show as unknown (though it is unknown... it's not defined in navigator.h) --- .../freeglut/src/blackberry/fg_main_blackberry.c | 3 +++ .../freeglut/src/blackberry/fg_window_blackberry.c | 14 ++++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/freeglut/freeglut/src/blackberry/fg_main_blackberry.c b/freeglut/freeglut/src/blackberry/fg_main_blackberry.c index 0932248..71f7b6d 100644 --- a/freeglut/freeglut/src/blackberry/fg_main_blackberry.c +++ b/freeglut/freeglut/src/blackberry/fg_main_blackberry.c @@ -579,6 +579,9 @@ void fgPlatformProcessSingleEvent ( void ) seems less likely to work when the app comes to the foreground. Might be a bug */ break; + case 0: //Doesn't exist in header, but shows up when keyboard shows and resizes + break; + default: LOGW("fgPlatformProcessSingleEvent: unknown navigator event: 0x%X", SLOG2_FA_SIGNED(eventType)); break; diff --git a/freeglut/freeglut/src/blackberry/fg_window_blackberry.c b/freeglut/freeglut/src/blackberry/fg_window_blackberry.c index e6876cf..9f35750 100644 --- a/freeglut/freeglut/src/blackberry/fg_window_blackberry.c +++ b/freeglut/freeglut/src/blackberry/fg_window_blackberry.c @@ -80,12 +80,14 @@ void fgPlatformOpenWindow( SFG_Window* window, const char* title, /* Could set size based on what is specified for window. Work on another time int size[2]; - size[0] = w; - size[1] = h; - if (screen_set_window_property_iv(sWindow, SCREEN_PROPERTY_BUFFER_SIZE, size)) { - screen_destroy_window(sWindow); - fgError("Could not set window buffer size"); - return; + if(sizeUse) { + size[0] = w; + size[1] = h; + if (screen_set_window_property_iv(sWindow, SCREEN_PROPERTY_BUFFER_SIZE, size)) { + screen_destroy_window(sWindow); + fgError("Could not set window buffer size"); + return; + } }*/ /* Create window buffers */