1
0

Fix glOrtho

This commit is contained in:
otya128
2016-12-24 15:04:47 +09:00
parent 7746dac4bb
commit 38a5f7f869

View File

@@ -444,7 +444,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 - 1, y + h - 1, y, 1024, -2048);
glOrtho(x, x + w, y + h, y, 1024, -2048);
}
Button[] buttonTable;
Sprite sprite;