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
This commit is contained in:
beaglejoe 2015-06-08 23:48:40 +00:00
parent f7e9223ea6
commit 0374609f67

View file

@ -169,9 +169,9 @@ tScreenSize* GfScrGetSupportedSizes(int nColorDepth, bool bFullScreen, int* pnSi
if (bFullScreen == 0) { if (bFullScreen == 0) {
/* list any size <= desktop size */ /* list any size <= desktop size */
if (ADefScreenSizes[avail-1].width <= bounds.w 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].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); GfLogInfo(" %dx%d,", aSuppSizes[*pnSizes].width, aSuppSizes[*pnSizes].height);
(*pnSizes)++; (*pnSizes)++;