From 4c7743760e9e6acba0482989f41eff9f00a0b7bc Mon Sep 17 00:00:00 2001 From: Amaryllis Kulla Date: Mon, 3 Jan 2022 20:43:51 +0100 Subject: [PATCH 1/2] Print reported drawable size --- src/graphics.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/graphics.cpp b/src/graphics.cpp index f13f950..1898f5d 100644 --- a/src/graphics.cpp +++ b/src/graphics.cpp @@ -626,6 +626,8 @@ struct GraphicsPrivate /* Query the acutal size in pixels, not units */ SDL_GL_GetDrawableSize(threadData->window, &winSize.x, &winSize.y); + Debug() << "Reported drawable size:" << winSize.x << "winSize.y"; + /* Make sure integer buffers are rebuilt before screen offsets are * calculated so we have the final allocated buffer size ready */ if (integerScaleActive) From 92c87d0656f71fc9d5d1d189a40ca97dde762319 Mon Sep 17 00:00:00 2001 From: Amaryllis Kulla Date: Mon, 3 Jan 2022 21:31:30 +0100 Subject: [PATCH 2/2] actually print height too --- src/graphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graphics.cpp b/src/graphics.cpp index 1898f5d..7755176 100644 --- a/src/graphics.cpp +++ b/src/graphics.cpp @@ -626,7 +626,7 @@ struct GraphicsPrivate /* Query the acutal size in pixels, not units */ SDL_GL_GetDrawableSize(threadData->window, &winSize.x, &winSize.y); - Debug() << "Reported drawable size:" << winSize.x << "winSize.y"; + Debug() << "Reported drawable size:" << winSize.x << winSize.y; /* Make sure integer buffers are rebuilt before screen offsets are * calculated so we have the final allocated buffer size ready */