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:
Wizzup? 2009-12-01 13:11:14 +00:00
parent ed6c37cc79
commit 17cb6596cc
1 changed files with 3 additions and 1 deletions

View File

@ -261,7 +261,9 @@ end;
procedure TMWindow.OnTargetBitmapDestroy(Bitmap: TMufasaBitmap);
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;
function TMWindow.GetColor(x, y: integer): TColor;