mirror of
https://github.com/moparisthebest/Simba
synced 2024-11-22 09:12:19 -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:
parent
104b410220
commit
a7f37bd6f4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user