mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[simulator] Make the calculator's screen pixel-perfect
This commit is contained in:
committed by
EmilieNumworks
parent
043c564a25
commit
3d24b3c054
@@ -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;
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user