1
0

Implement GSAVE -1

This commit is contained in:
otya128
2017-07-09 22:44:25 +09:00
parent 946e3a1c1b
commit ee4ab7bc9d
5 changed files with 60 additions and 5 deletions

View File

@@ -1206,7 +1206,13 @@ class Graphic2 : Graphic
{
int arrayH = h, arrayW = w;
int sx, sy;
int* buffer = cast(int*)GRP[savepage].surface.pixels;
int* buffer;
if (savepage == -1)
{
buffer = cast(int*)petitcom.console.GRPF.surface.pixels;
}
else
buffer = cast(int*)GRP[savepage].surface.pixels;
for (int iy = sy; iy < h; iy++)
{
for (int ix = sx; ix < w; ix++)