From e9160763070c7b6608d44b56e24fbb6765bf9da6 Mon Sep 17 00:00:00 2001 From: "mkaply%us.ibm.com" Date: Thu, 21 Sep 2000 01:26:00 +0000 Subject: [PATCH] #53410 r=brendan, a=brendan Using wrong identifier to get screen width and height --- gfx/src/os2/nsScreenOS2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/src/os2/nsScreenOS2.cpp b/gfx/src/os2/nsScreenOS2.cpp index ba56138506f7..f8a0bd3594a9 100644 --- a/gfx/src/os2/nsScreenOS2.cpp +++ b/gfx/src/os2/nsScreenOS2.cpp @@ -54,7 +54,7 @@ nsScreenOS2 :: GetRect(PRInt32 *outLeft, PRInt32 *outTop, PRInt32 *outWidth, PRI HPS hps = WinGetScreenPS( HWND_DESKTOP); HDC hdc = GpiQueryDevice( hps); - DevQueryCaps(hdc, CAPS_HORIZONTAL_RESOLUTION, 2, alArray); + DevQueryCaps(hdc, CAPS_WIDTH, 2, alArray); *outTop = 0; *outLeft = 0;