1
0
mirror of https://github.com/moparisthebest/Simba synced 2024-11-26 03:02:15 -05:00

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
This commit is contained in:
Raymond 2010-01-21 18:22:28 +00:00
parent 104b410220
commit a7f37bd6f4

View File

@ -79,7 +79,7 @@ interface
implementation implementation
uses windowutil, GraphType, interfacebase; uses GraphType, interfacebase;
type type
PMouseInput = ^TMouseInput; PMouseInput = ^TMouseInput;
@ -144,7 +144,7 @@ implementation
constructor TWindow.Create(target: Hwnd); begin constructor TWindow.Create(target: Hwnd); begin
inherited Create; inherited Create;
self.handle:= target; self.handle:= target;
self.dc:= GetDC(target); self.dc:= GetWindowDC(target);
self.buffer:= TBitmap.Create; self.buffer:= TBitmap.Create;
self.buffer.PixelFormat:= pf32bit; self.buffer.PixelFormat:= pf32bit;
keyinput:= TKeyInput.Create; keyinput:= TKeyInput.Create;