Placeholder for window sizes Prevent navigator event 0x0 to show as unknown (though it is unknown... it's not defined in navigator.h)
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1668 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
2f2185d930
commit
f3f7e54713
@ -579,6 +579,9 @@ void fgPlatformProcessSingleEvent ( void )
|
|||||||
seems less likely to work when the app comes to the foreground. Might be a bug */
|
seems less likely to work when the app comes to the foreground. Might be a bug */
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 0: //Doesn't exist in header, but shows up when keyboard shows and resizes
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
LOGW("fgPlatformProcessSingleEvent: unknown navigator event: 0x%X", SLOG2_FA_SIGNED(eventType));
|
LOGW("fgPlatformProcessSingleEvent: unknown navigator event: 0x%X", SLOG2_FA_SIGNED(eventType));
|
||||||
break;
|
break;
|
||||||
|
@ -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
|
/* Could set size based on what is specified for window. Work on another time
|
||||||
int size[2];
|
int size[2];
|
||||||
|
if(sizeUse) {
|
||||||
size[0] = w;
|
size[0] = w;
|
||||||
size[1] = h;
|
size[1] = h;
|
||||||
if (screen_set_window_property_iv(sWindow, SCREEN_PROPERTY_BUFFER_SIZE, size)) {
|
if (screen_set_window_property_iv(sWindow, SCREEN_PROPERTY_BUFFER_SIZE, size)) {
|
||||||
screen_destroy_window(sWindow);
|
screen_destroy_window(sWindow);
|
||||||
fgError("Could not set window buffer size");
|
fgError("Could not set window buffer size");
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
/* Create window buffers */
|
/* Create window buffers */
|
||||||
|
Reference in New Issue
Block a user