mirror of
https://github.com/moparisthebest/Simba
synced 2024-11-22 17:22:21 -05:00
If the current window bitmap is beeing freed, don't raise an exception, but default to desktop and print a warning.
git-svn-id: http://www.villavu.com/repositories/merlijn/mufasa@259 3f818213-9676-44b0-a9b4-5e4c4e03d09d
This commit is contained in:
parent
ed6c37cc79
commit
17cb6596cc
@ -261,7 +261,9 @@ end;
|
|||||||
|
|
||||||
procedure TMWindow.OnTargetBitmapDestroy(Bitmap: TMufasaBitmap);
|
procedure TMWindow.OnTargetBitmapDestroy(Bitmap: TMufasaBitmap);
|
||||||
begin
|
begin
|
||||||
raise Exception.CreateFmt('Our targetbitmap has been destroyed, what now?',[]);
|
Self.SetDesktop;
|
||||||
|
writeln('Our current bitmap is being freed! Defaulting to Desktop.');
|
||||||
|
// raise Exception.CreateFmt('Our targetbitmap has been destroyed, what now?',[]);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TMWindow.GetColor(x, y: integer): TColor;
|
function TMWindow.GetColor(x, y: integer): TColor;
|
||||||
|
Loading…
Reference in New Issue
Block a user