1
0

Implement SPCLIP, Fix Sprite for BIG

This commit is contained in:
otya128
2016-12-10 18:40:54 +09:00
parent 8afb32dd88
commit 3d068e3fef
3 changed files with 50 additions and 8 deletions

View File

@@ -401,7 +401,15 @@ class PetitComputer
glViewport(x, currentDisplay.windowSize.height - h - y, w, h);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glOrtho(0, w, h, 0, 1024, -2048);
glOrtho(x, x + w, y + h, y, 1024, -2048);
}
void chRenderingDisplay(int i)
{
chScreen2(currentDisplay.rect[i].x, currentDisplay.rect[i].y, currentDisplay.rect[i].w, currentDisplay.rect[i].h);
}
void chRenderingDisplay(int i, int x, int y, int w, int h)
{
chScreen2(currentDisplay.rect[i].x + x, currentDisplay.rect[i].y + y, w, h);
}
Button[] buttonTable;
Sprite sprite;
@@ -466,6 +474,7 @@ class PetitComputer
display(i);
graphic.clip(false);
graphic.clip(true);
this.sprite.spclip;
}
}