From 560ec69f3b99777745614a86790c6eefb0550f26 Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Thu, 7 May 2020 14:44:30 +0200 Subject: [PATCH] more logs --- app/src/screen.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/screen.c b/app/src/screen.c index fcd0c729..181681bb 100644 --- a/app/src/screen.c +++ b/app/src/screen.c @@ -615,6 +615,8 @@ screen_convert_to_frame_coords(struct screen *screen, int32_t x, int32_t y) { SDL_GetWindowSize(screen->window, &ww, &wh); SDL_GL_GetDrawableSize(screen->window, &dw, &dh); + LOGI("window_size = %dx%d, drawable_size = %dx%d", ww, wh, dw, dh); + // scale (64 bits for intermediate multiplications) x = (int64_t) (x - screen->rect.x) * w * dw / (screen->rect.w * ww); y = (int64_t) (y - screen->rect.y) * h * dh / (screen->rect.h * wh);