1
0

Fix sprite rendering

This commit is contained in:
otya128
2016-12-14 21:07:03 +09:00
parent 96ea2e84e2
commit 992e42f9d8
2 changed files with 3 additions and 1 deletions

View File

@@ -392,7 +392,7 @@ class PetitComputer
glViewport2(x + currentDisplay.rect[i].x, currentDisplay.yoffset - h - y - currentDisplay.rect[i].y, w, h);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glOrtho(x, x + w, y + h, y, 1024, -2048);
glOrtho(x, x + w - 1, y + h - 1, y, 1024, -2048);
}
Button[] buttonTable;
Sprite sprite;