]> git.mxchange.org Git - flightgear.git/commitdiff
Tatsuhiro NISHIOKA: "enables osgviewer version of FlightGear to show
authormfranz <mfranz>
Wed, 12 Mar 2008 12:38:54 +0000 (12:38 +0000)
committermfranz <mfranz>
Wed, 12 Mar 2008 12:38:54 +0000 (12:38 +0000)
                     window frame, menubar, and Docks properly" (Mac OSX)

src/Main/fg_os_osgviewer.cxx

index 087d29757998f520ae32e28c6fdaafaaf3cf0873..4ccb39c19c466ffb13cfabf68c95ff18eb318e06 100644 (file)
@@ -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;
     }