Fix GCLIP range check

This commit is contained in:
otya128 committed 2016-12-16 22:52:24 +09:00
1 parent 8322b9addb
commit c8d85b4669
1 file changed
+1 -1
+1 -1
View File
@@ -485,7 +485,7 @@ class BuiltinFunction
throw new OutOfRange("GCLIP");
if (clipmode)
{
if (sx >= 512 || sy >= 512 || ex >= 512 || ey >= 512)
if (sx >= p.graphic.width || sy >= p.graphic.height || ex >= p.graphic.width || ey >= p.graphic.height)
throw new OutOfRange("GCLIP");
}
if (sx > ex)