Fix sprite rendering

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

No files matched your search

+1 -1
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;