X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_em%2Fgraphics.c;h=398ae6e0e303254f319e69931debc5d4b8b0b291;hb=778c7803f078b162199125a9e6e6baf92d74c409;hp=a29d2e0e7208ab4d45cf1e7cad2a4bb1bd1311a0;hpb=d72ae21e98cef0a0c6e5adefa34153cf0bc149af;p=rocksndiamonds.git diff --git a/src/game_em/graphics.c b/src/game_em/graphics.c index a29d2e0e..398ae6e0 100644 --- a/src/game_em/graphics.c +++ b/src/game_em/graphics.c @@ -553,11 +553,13 @@ static void setMinimalPlayerBoundaries(int *sx1, int *sy1, int *sx2, int *sy2) boolean checkIfAllPlayersFitToScreen(void) { int sx1 = 0, sy1 = 0, sx2 = 0, sy2 = 0; + int scr_fieldx = getScreenFieldSizeX(); + int scr_fieldy = getScreenFieldSizeY(); setMinimalPlayerBoundaries(&sx1, &sy1, &sx2, &sy2); - return (sx2 - sx1 <= SCR_FIELDX * TILEX && - sy2 - sy1 <= SCR_FIELDY * TILEY); + return (sx2 - sx1 <= scr_fieldx * TILEX && + sy2 - sy1 <= scr_fieldy * TILEY); } static void setScreenCenteredToAllPlayers(int *sx, int *sy)