From 304475914cf0be19b0e27081f528f5e543392f69 Mon Sep 17 00:00:00 2001 From: "mkaply%us.ibm.com" Date: Mon, 26 Mar 2001 23:51:26 +0000 Subject: [PATCH] #67913 r=mkaply, sr=blizzard Take into account WarpCenter when determining AvailRect --- gfx/src/os2/nsScreenOS2.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/gfx/src/os2/nsScreenOS2.cpp b/gfx/src/os2/nsScreenOS2.cpp index cd8ef09f520..8998aea36a1 100644 --- a/gfx/src/os2/nsScreenOS2.cpp +++ b/gfx/src/os2/nsScreenOS2.cpp @@ -23,10 +23,6 @@ #include "nsScreenOS2.h" #include "nsGfxDefs.h" -#define INCL_PM -#include - - nsScreenOS2 :: nsScreenOS2 ( ) { NS_INIT_REFCNT(); @@ -75,6 +71,16 @@ nsScreenOS2 :: GetAvailRect(PRInt32 *outLeft, PRInt32 *outTop, PRInt32 *outWidth *outWidth = ::WinQuerySysValue( HWND_DESKTOP, SV_CXFULLSCREEN ); *outHeight = ::WinQuerySysValue( HWND_DESKTOP, SV_CYFULLSCREEN ); + HWND hwndWarpCenter = WinWindowFromID( HWND_DESKTOP, 0x555 ); + if (hwndWarpCenter) { + SWP swp; + WinQueryWindowPos( hwndWarpCenter, &swp ); + if (swp.y != 0) { + /* WarpCenter at top */ + *outTop += swp.cy; + } /* endif */ + } /* endif */ + return NS_OK; } // GetAvailRect