1
0
mirror of https://github.com/moparisthebest/Simba synced 2024-11-28 20:12:16 -05:00
git-svn-id: http://www.villavu.com/repositories/merlijn/mufasa@84 3f818213-9676-44b0-a9b4-5e4c4e03d09d
This commit is contained in:
Wizzup? 2009-09-23 04:09:52 +00:00
parent 301e4370ad
commit 79505f7c4d
2 changed files with 12 additions and 1 deletions

View File

@ -188,7 +188,7 @@ begin
case Window.TargetMode of
w_BMP, w_Window, w_HDC:
{$IFDEF WINDOWS}
Self.SetTarget(Window.TargetDC, Window.TargetMode);
Self.SetTarget(Window.TargetHandle, Window.TargetMode);
{$ELSE}
writeln('TMWindow.SetWindow - HDC not supported');
{$ENDIF}

View File

@ -17,6 +17,7 @@ uses
{$IFDEF LINUX}
Procedure XImageToRawImage(XImg: PXImage; Var RawImage: TRawImage);
function MufasaXErrorHandler(para1:PDisplay; para2:PXErrorEvent):cint;cdecl;
function MouseWindow: x.TWindow;
{$ENDIF}
Procedure ArrDataToRawImage(Ptr: PRGB32; Size: TPoint; Var RawImage: TRawImage);
@ -129,5 +130,15 @@ Begin
End;
function MouseWindow: x.TWindow;
var
Old_Handler: TXErrorHandler;
begin
Old_Handler := XSetErrorHandler(@MufasaXErrorHandler);
XSetErrorHandler(Old_Handler);
end;
end.