From: mfranz Date: Wed, 12 Mar 2008 12:38:54 +0000 (+0000) Subject: Tatsuhiro NISHIOKA: "enables osgviewer version of FlightGear to show X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e5c22e159f6f01918bdda3dd4d37df5da18397de;p=flightgear.git Tatsuhiro NISHIOKA: "enables osgviewer version of FlightGear to show window frame, menubar, and Docks properly" (Mac OSX) --- diff --git a/src/Main/fg_os_osgviewer.cxx b/src/Main/fg_os_osgviewer.cxx index 087d29757..4ccb39c19 100644 --- a/src/Main/fg_os_osgviewer.cxx +++ b/src/Main/fg_os_osgviewer.cxx @@ -148,10 +148,11 @@ void fgOSOpenWindow(int w, int h, int bpp, traits->windowDecoration = true; traits->width = w; traits->height = h; -#ifdef WIN32 - // Ugly Hack, why does CW_USEDEFAULT works like phase of the moon? - traits->x = 100; - traits->y = 100; +#if defined(WIN32) || defined(__APPLE__) + // Ugly Hack, why does CW_USEDEFAULT works like phase of the moon? + // Mac also needs this to show window frame, menubar and Docks + traits->x = 100; + traits->y = 100; #endif traits->supportsResize = true; }