[simulator] Make the calculator's screen pixel-perfect

This commit is contained in:
Romain Goyet
2020-06-17 14:27:38 -04:00
committed by Émilie Feral
parent 558d0f6343
commit 026fe120fe
2 changed files with 2 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ static constexpr float X(int x) { return static_cast<float>(x)/static_cast<float
static constexpr float Y(int y) { return static_cast<float>(y)/static_cast<float>(backgroundHeight); }
static constexpr SDL_FRect areaOfInterest = {X(110), Y(30), X(940), Y(2150)};
static constexpr SDL_FRect screenRect = {X(192), Y(191), X(779), Y(582)};
static constexpr SDL_FRect screenRect = {X(192), Y(191), X(776), Y(582)};
static SDL_Rect sFrame;

View File

@@ -73,7 +73,7 @@ void init() {
Ion::Display::Height,
0 // Default flags: no high-dpi, not resizeable.
#else
290, 555, // Otherwise use a default size that matches the whole calculator
458, 888, // Otherwise use a default size that makes the screen pixel-perfect
SDL_WINDOW_ALLOW_HIGHDPI
#if EPSILON_SDL_FULLSCREEN
| SDL_WINDOW_FULLSCREEN