[commit] r2272 - macintosh carbon change ioScreenSize

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[commit] r2272 - macintosh carbon change ioScreenSize

commits-3
 
Author: johnmci
Date: 2010-09-02 11:53:49 -0700 (Thu, 02 Sep 2010)
New Revision: 2272

Modified:
   trunk/platforms/Mac OS/vm/sqMacWindowUniversal.c
Log:
macintosh carbon change ioScreenSize

Eliot suggested the old carbon macintosh vm code return saved window size from ioScreenSize when it is running headless.

Modified: trunk/platforms/Mac OS/vm/sqMacWindowUniversal.c
===================================================================
--- trunk/platforms/Mac OS/vm/sqMacWindowUniversal.c 2010-09-02 02:56:12 UTC (rev 2271)
+++ trunk/platforms/Mac OS/vm/sqMacWindowUniversal.c 2010-09-02 18:53:49 UTC (rev 2272)
@@ -781,7 +781,12 @@
     Rect portRect;
     extern Boolean gSqueakExplicitWindowOpenNeeded;
 
- if (gSqueakHeadless && !browserActiveAndDrawingContextOk()) return ((16 << 16) | 16);
+ if (gSqueakHeadless && !browserActiveAndDrawingContextOk()) {
+ w  = (unsigned) getSavedWindowSize() >> 16;
+ h= getSavedWindowSize() & 0xFFFF;
+ return (w << 16) | (h & 0xFFFF);  /* w is high 16 bits; h is low 16 bits */
+ }
+
  if (browserActiveAndDrawingContextOkAndNOTInFullScreenMode())
  return browserGetWindowSize();