1
0
Fork 0

Tatsuhiro NISHIOKA: "enables osgviewer version of FlightGear to show

window frame, menubar, and Docks properly" (Mac OSX)
This commit is contained in:
mfranz 2008-03-12 12:38:54 +00:00
parent fcf92fdb57
commit e5c22e159f

View file

@ -148,10 +148,11 @@ void fgOSOpenWindow(int w, int h, int bpp,
traits->windowDecoration = true; traits->windowDecoration = true;
traits->width = w; traits->width = w;
traits->height = h; traits->height = h;
#ifdef WIN32 #if defined(WIN32) || defined(__APPLE__)
// Ugly Hack, why does CW_USEDEFAULT works like phase of the moon? // Ugly Hack, why does CW_USEDEFAULT works like phase of the moon?
traits->x = 100; // Mac also needs this to show window frame, menubar and Docks
traits->y = 100; traits->x = 100;
traits->y = 100;
#endif #endif
traits->supportsResize = true; traits->supportsResize = true;
} }