mirror of
https://github.com/moparisthebest/Simba
synced 2024-11-11 03:45:06 -05:00
Removed wrong exceptions.
git-svn-id: http://www.villavu.com/repositories/merlijn/mufasa@67 3f818213-9676-44b0-a9b4-5e4c4e03d09d
This commit is contained in:
parent
13c2103030
commit
5d58b428ea
@ -242,17 +242,8 @@ end;
|
|||||||
|
|
||||||
procedure TMWindow.FreeReturnData;
|
procedure TMWindow.FreeReturnData;
|
||||||
begin
|
begin
|
||||||
if Self.TargetMode <> w_XWindow then
|
if (Self.TargetMode <> w_XWindow) or FreezeState then
|
||||||
begin
|
Exit;
|
||||||
raise Exception.createFMT('FreeReturnData - Image data must only ' +
|
|
||||||
' be freed with XGetImage', []);
|
|
||||||
exit;
|
|
||||||
end;
|
|
||||||
if FreezeState then
|
|
||||||
begin
|
|
||||||
raise Exception.createFMT('FreeReturnData called when Freeze = True', []);
|
|
||||||
exit;
|
|
||||||
end;
|
|
||||||
{$IFDEF LINUX}
|
{$IFDEF LINUX}
|
||||||
if not Self.XImageFreed then
|
if not Self.XImageFreed then
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user