From e03a539744edeedba288c74fdb6222422b179f60 Mon Sep 17 00:00:00 2001 From: Mathieu Schroeter Date: Wed, 27 Jun 2018 18:17:44 +0200 Subject: [PATCH] Cosmetic: remove dead code --- src/pixmap.cxx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/pixmap.cxx b/src/pixmap.cxx index 2ca13b4..9c80361 100644 --- a/src/pixmap.cxx +++ b/src/pixmap.cxx @@ -978,9 +978,6 @@ CPixmap::FromDisplayToGame (Sint32 & x, Sint32 & y, double prevScale) if (this->event->IsDemoPlaying ()) return; - Sint32 w, h; - SDL_GetWindowSize (g_window, &w, &h); - double factor = 1; if (!g_bFullScreen) @@ -988,9 +985,6 @@ CPixmap::FromDisplayToGame (Sint32 & x, Sint32 & y, double prevScale) x /= factor; y /= factor; - - if (!g_bFullScreen) - return; } void