mirror of
https://github.com/moparisthebest/Simba
synced 2024-12-25 16:58:53 -05:00
Changes.
git-svn-id: http://www.villavu.com/repositories/merlijn/mufasa@84 3f818213-9676-44b0-a9b4-5e4c4e03d09d
This commit is contained in:
parent
301e4370ad
commit
79505f7c4d
@ -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}
|
||||
|
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user