From a7f37bd6f4bde1b750e57989135bc599d2277531 Mon Sep 17 00:00:00 2001 From: Raymond Date: Thu, 21 Jan 2010 18:22:28 +0000 Subject: [PATCH] Removed Windowutil and changed GetDC into GetWindowDC. (GetWindowDC gets the entire window, including the border, menubar etc..). Also Ben, you might want to get rid of the plugin loading every time a new target is set. git-svn-id: http://www.villavu.com/repositories/merlijn/mufasa@442 3f818213-9676-44b0-a9b4-5e4c4e03d09d --- branches/iomanager/Units/MMLCore/os_windows.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/branches/iomanager/Units/MMLCore/os_windows.pas b/branches/iomanager/Units/MMLCore/os_windows.pas index db8ceab..6277ce8 100644 --- a/branches/iomanager/Units/MMLCore/os_windows.pas +++ b/branches/iomanager/Units/MMLCore/os_windows.pas @@ -79,7 +79,7 @@ interface implementation - uses windowutil, GraphType, interfacebase; + uses GraphType, interfacebase; type PMouseInput = ^TMouseInput; @@ -144,7 +144,7 @@ implementation constructor TWindow.Create(target: Hwnd); begin inherited Create; self.handle:= target; - self.dc:= GetDC(target); + self.dc:= GetWindowDC(target); self.buffer:= TBitmap.Create; self.buffer.PixelFormat:= pf32bit; keyinput:= TKeyInput.Create;