|
From: <set...@us...> - 2006-03-27 23:19:47
|
Revision: 1161 Author: sethdill Date: 2006-03-27 15:19:43 -0800 (Mon, 27 Mar 2006) ViewCVS: http://svn.sourceforge.net/frontierkernel/?rev=1161&view=rev Log Message: ----------- Use GetAvailableWindowPositioningBounds to get the available screen space. Takes both menubar and the dock into account, so I also removed the menubar code. See RFE #1439984 on sourceforge. Modified Paths: -------------- Frontier/trunk/Common/source/quickdraw.c Modified: Frontier/trunk/Common/source/quickdraw.c =================================================================== --- Frontier/trunk/Common/source/quickdraw.c 2006-03-27 19:10:49 UTC (rev 1160) +++ Frontier/trunk/Common/source/quickdraw.c 2006-03-27 23:19:43 UTC (rev 1161) @@ -1229,8 +1229,11 @@ *r = screenBits.bounds; /*default return value, if no window open, or error*/ + /* commenting this out because we don't run on systems without color quickdraw anyway */ + /* if (!havecolorquickdraw ()) goto exit; + */ hdevice = GetDeviceList (); /*start with the first graphics device*/ @@ -1240,12 +1243,14 @@ if (hmost != nil) { - *r = (**hmost).gdRect; - - flmenubar = hmost == GetMainDevice (); + /* + 2006-03-27 SMD - let the OS tell us about the available bounds + this handles the menubar, the dock, and anything else the system knows about + */ + GetAvailableWindowPositioningBounds (hmost, r); } - goto exit; + break; /* exit the while loop */ } if (((**hdevice).gdFlags | (1 << screenActive)) != 0) { /*screen is active*/ @@ -1266,10 +1271,6 @@ hdevice = GetNextDevice (hdevice); /*advance to next device in list*/ } /*while*/ - exit: - - if (flmenubar) - (*r).top += getmenubarheight (); #endif #ifdef WIN95VERSION This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |