From 0374609f67a726ef5da9abdc268898ddec352d44 Mon Sep 17 00:00:00 2001 From: beaglejoe Date: Mon, 8 Jun 2015 23:48:40 +0000 Subject: [PATCH] Fix from Fabian: The offered window sizes in the display options are not as expected when using SDL2 in windowed mode. git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@6022 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: e3710cbd8a012ed458a297bf8d6789717f7371ba Former-commit-id: cb03574e040c23b235329176ba63001fe900c6a4 --- src/libs/tgfclient/guiscreen.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/tgfclient/guiscreen.cpp b/src/libs/tgfclient/guiscreen.cpp index a284ff616..e35ab6b53 100644 --- a/src/libs/tgfclient/guiscreen.cpp +++ b/src/libs/tgfclient/guiscreen.cpp @@ -169,9 +169,9 @@ tScreenSize* GfScrGetSupportedSizes(int nColorDepth, bool bFullScreen, int* pnSi if (bFullScreen == 0) { /* list any size <= desktop size */ if (ADefScreenSizes[avail-1].width <= bounds.w - && ADefScreenSizes[avail].height <= bounds.h) { + && ADefScreenSizes[avail-1].height <= bounds.h) { aSuppSizes[*pnSizes].width = ADefScreenSizes[avail-1].width; - aSuppSizes[*pnSizes].height = ADefScreenSizes[avail].height; + aSuppSizes[*pnSizes].height = ADefScreenSizes[avail-1].height; GfLogInfo(" %dx%d,", aSuppSizes[*pnSizes].width, aSuppSizes[*pnSizes].height); (*pnSizes)++;