Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dosbox-staging/dosbox-staging.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkcgen <kcgen@users.noreply.github.com>2022-10-15 20:36:27 +0300
committerkcgen <kcgen@users.noreply.github.com>2022-10-15 20:36:27 +0300
commit63afab0bd67bf79798c0c953d90fdd5dbb0ebf16 (patch)
tree6be247153893c3f30741602953d40eb069d4c2db /include
parentdaf016062af469e4a14b966d5a3a6a5a24ee0629 (diff)
Fix window-size logging on transition from full-to-windowed
Diffstat (limited to 'include')
-rw-r--r--include/sdlmain.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sdlmain.h b/include/sdlmain.h
index a0f8686de..06743e873 100644
--- a/include/sdlmain.h
+++ b/include/sdlmain.h
@@ -151,6 +151,11 @@ struct SDL_Block {
uint8_t bpp = 0;
double dpi_scale = 1.0;
bool fullscreen = false;
+
+ // Records the canvas size (actual window-size in pixels) prior
+ // to switching to fullscreen
+ SDL_Rect canvas_size_before_fullscreen_switch = {};
+
// This flag indicates, that we are in the process of switching
// between fullscreen or window (as oppososed to changing
// rendering size due to rotating screen, emulation state, or