From 38a5f7f869c9af73a6d050af621286122e2d91e8 Mon Sep 17 00:00:00 2001 From: otya128 Date: Sat, 24 Dec 2016 15:04:47 +0900 Subject: [PATCH] Fix glOrtho --- SMILEBASIC/petitcomputer.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SMILEBASIC/petitcomputer.d b/SMILEBASIC/petitcomputer.d index 879a9fb..25c508f 100644 --- a/SMILEBASIC/petitcomputer.d +++ b/SMILEBASIC/petitcomputer.d @@ -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;