Added (though commented out) support for setting window position
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1669 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
f3f7e54713
commit
b817a1d976
@ -78,12 +78,22 @@ void fgPlatformOpenWindow( SFG_Window* window, const char* title,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Could set size based on what is specified for window. Work on another time
|
/* Uncomment when multiple windows are supported
|
||||||
int size[2];
|
int value[2];
|
||||||
|
if(positionUse) {
|
||||||
|
value[0] = x;
|
||||||
|
value[1] = y;
|
||||||
|
if (screen_set_window_property_iv(sWindow, SCREEN_PROPERTY_POSITION, value)) {
|
||||||
|
screen_destroy_window(sWindow);
|
||||||
|
fgError("Could not set window position");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(sizeUse) {
|
if(sizeUse) {
|
||||||
size[0] = w;
|
value[0] = w;
|
||||||
size[1] = h;
|
value[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, value)) {
|
||||||
screen_destroy_window(sWindow);
|
screen_destroy_window(sWindow);
|
||||||
fgError("Could not set window buffer size");
|
fgError("Could not set window buffer size");
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user