From 2d6302f63510734db052aff45cab5ed56b4987dd Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Mon, 18 May 2020 17:39:48 +0200 Subject: [PATCH] morelogs --- app/src/screen.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/screen.c b/app/src/screen.c index 161e916c..b665f888 100644 --- a/app/src/screen.c +++ b/app/src/screen.c @@ -164,12 +164,13 @@ screen_update_content_rect(struct screen *screen) { int ww, wh; SDL_GetWindowSize(screen->window, &ww, &wh); - LOGI("update_content_rect: window=%dx%d, drawable=%dx%d", ww, wh, dw, dh); struct size content_size = screen->content_size; // The drawable size is the window size * the HiDPI scale struct size drawable_size = {dw, dh}; + LOGI("update_content_rect: window=%dx%d, drawable=%dx%d content=%ux%u", ww, wh, dw, dh, content_size.width, content_size.height); + SDL_Rect *rect = &screen->rect; if (is_optimal_size(drawable_size, content_size)) { @@ -177,6 +178,7 @@ screen_update_content_rect(struct screen *screen) { rect->y = 0; rect->w = drawable_size.width; rect->h = drawable_size.height; + LOGI(" --> (optimal) rect (%d, %d) %dx%d", rect->x, rect->y, rect->w, rect->h); return; }