From 38ca6c24fecfb17bb876828862dc33454a2d6893 Mon Sep 17 00:00:00 2001 From: Steve Date: Sat, 22 Dec 2018 15:07:55 +0000 Subject: [PATCH] Use pre-calculated UI offset values. --- src/system/draw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/system/draw.c b/src/system/draw.c index 194a777..456cde4 100644 --- a/src/system/draw.c +++ b/src/system/draw.c @@ -77,8 +77,8 @@ void presentScene(void) uiDest.w = UI_WIDTH; uiDest.h = UI_HEIGHT; - uiDest.x = (app.winWidth / 2) - (UI_WIDTH / 2); - uiDest.y = (app.winHeight / 2) - (UI_HEIGHT / 2); + uiDest.x = app.uiOffset.x; + uiDest.y = app.uiOffset.y; if (dev.debug) {