Fixing screen resize bugs

This commit is contained in:
Vladislav Khorev committed 2026-07-19 13:07:39 +03:00
1 parent 6406c4f258
commit 6a79e8e41e
3 files changed
+154 -168

No files matched your search

+4
View File
@@ -39,6 +39,7 @@ namespace FRG {
void setupPart2();
void update();
void render();
void onWindowResized();
bool shouldExit() const { return Environment::exitGameLoop; }
@@ -201,6 +202,9 @@ namespace FRG {
int64_t newTickCount;
int64_t lastTickCount;
int lastDrawableW = -1;
int lastDrawableH = -1;
static const size_t CONST_TIMER_INTERVAL = 10;
static const size_t CONST_MAX_TIME_INTERVAL = 1000;
};