зеркало из https://github.com/mozilla/pjs.git
r=mkaply, sr=blizzard Take into account WarpCenter when determining AvailRect
This commit is contained in:
Родитель
c27c98984f
Коммит
304475914c
|
@ -23,10 +23,6 @@
|
||||||
#include "nsScreenOS2.h"
|
#include "nsScreenOS2.h"
|
||||||
#include "nsGfxDefs.h"
|
#include "nsGfxDefs.h"
|
||||||
|
|
||||||
#define INCL_PM
|
|
||||||
#include <os2.h>
|
|
||||||
|
|
||||||
|
|
||||||
nsScreenOS2 :: nsScreenOS2 ( )
|
nsScreenOS2 :: nsScreenOS2 ( )
|
||||||
{
|
{
|
||||||
NS_INIT_REFCNT();
|
NS_INIT_REFCNT();
|
||||||
|
@ -75,6 +71,16 @@ nsScreenOS2 :: GetAvailRect(PRInt32 *outLeft, PRInt32 *outTop, PRInt32 *outWidth
|
||||||
*outWidth = ::WinQuerySysValue( HWND_DESKTOP, SV_CXFULLSCREEN );
|
*outWidth = ::WinQuerySysValue( HWND_DESKTOP, SV_CXFULLSCREEN );
|
||||||
*outHeight = ::WinQuerySysValue( HWND_DESKTOP, SV_CYFULLSCREEN );
|
*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;
|
return NS_OK;
|
||||||
|
|
||||||
} // GetAvailRect
|
} // GetAvailRect
|
||||||
|
|
Загрузка…
Ссылка в новой задаче