From c7f5d96caf99a9a68512970080fd58c2325b6c10 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 12 Jun 2007 08:28:41 +0000 Subject: [PATCH] From Stephan Huber, "the computation of the windowtitlebar-height was wrong, attached you'll find a fixed version for GraphicsWindowCarbon.cpp " --- src/osgViewer/GraphicsWindowCarbon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgViewer/GraphicsWindowCarbon.cpp b/src/osgViewer/GraphicsWindowCarbon.cpp index 70fed84bf..4d63a7d0d 100644 --- a/src/osgViewer/GraphicsWindowCarbon.cpp +++ b/src/osgViewer/GraphicsWindowCarbon.cpp @@ -731,7 +731,7 @@ bool GraphicsWindowCarbon::realizeImplementation() Rect titleRect; GetWindowBounds(_window, kWindowTitleBarRgn, &titleRect); - _windowTitleHeight = abs(titleRect.top); + _windowTitleHeight = abs(titleRect.bottom - titleRect.top); if ((_ownsWindow) || (windowData && windowData->installEventHandler())) installEventHandler();