From c8d86726b29f4e8b7881143fa2403b8f0930026d Mon Sep 17 00:00:00 2001 From: "pinkerton%netscape.com" Date: Tue, 20 Feb 2001 01:15:26 +0000 Subject: [PATCH] no need to worry about the title bar when computing which screen the window is on. it's only an approximation, and subtracting out the title bar showed up on profiler runs as about 8%. r=saari/sr=sfraser, bug# 69101. --- gfx/src/mac/nsDeviceContextMac.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/gfx/src/mac/nsDeviceContextMac.cpp b/gfx/src/mac/nsDeviceContextMac.cpp index 4800bf813b7..91a492f134d 100644 --- a/gfx/src/mac/nsDeviceContextMac.cpp +++ b/gfx/src/mac/nsDeviceContextMac.cpp @@ -536,14 +536,6 @@ nsDeviceContextMac :: FindScreenForSurface ( nsIScreen** outScreen ) ::LocalToGlobal ( &topLeft ); ::LocalToGlobal ( &bottomRight ); Rect globalWindowBounds = { topLeft.v, topLeft.h, bottomRight.v, bottomRight.h } ; - - // subtract out the height of title bar from the size - StRegionFromPool structRgn; - ::GetWindowRegion(window, kWindowStructureRgn, structRgn); - Rect structBox; - ::GetRegionBounds ( structRgn, &structBox ); - PRInt32 wTitleHeight = topLeft.v - 1 - structBox.top; - globalWindowBounds.top -= wTitleHeight; mScreenManager->ScreenForRect ( globalWindowBounds.left, globalWindowBounds.top, globalWindowBounds.bottom - globalWindowBounds.top,