src/video/SDL_video.c
changeset 1266 a7bea6db3c3e
parent 1257 448a9a64537b
child 1296 f418917e0b7a
--- a/src/video/SDL_video.c	Wed Jan 25 07:04:02 2006 +0000
+++ b/src/video/SDL_video.c	Wed Jan 25 18:11:56 2006 +0000
@@ -489,7 +489,7 @@
 				/* Mode with any dimension smaller or equal than current best ? */
 				if ((sizes[i]->w <= sizes[best]->w) || (sizes[i]->h <= sizes[best]->h)) {
 					/* Now choose the mode that has less pixels */
-					if ((sizes[i]->w * sizes[i]->h) < (sizes[best]->w * sizes[best]->h)) {
+					if ((sizes[i]->w * sizes[i]->h) <= (sizes[best]->w * sizes[best]->h)) {
 						best=i;
 						supported = 1;
 					}