test/.cvsignore
author Patrice Mandin <patmandin@gmail.com>
Thu, 19 Jan 2006 21:28:52 +0000
changeset 1257 448a9a64537b
parent 1249 e6a82dcdce09
child 1285 c9ae23d221ea
permissions -rw-r--r--
[PATCH] SDL_GetVideoMode() does not find best mode, part 2

Following commit 1.51, I come accross a problem when SDL must choose between
several video modes that could suit the one asked.

If I ask 320x240 with this list:
768x480 768x240 640x400 640x200 384x480 384x240 320x400 320x200

The smallest selectables modes are 384x240 and 320x400. And SDL choose the later
in this list, but 384x240 is more suitable. So I added a check to compare
the pixel count (surface) of modes, and select the one which has the smallest
pixel count.

In my example, 384x240 has 92160 pixels, and 320x400 has 128000 pixels. So now
SDL will choose 384x240 for the asked 320x240 mode.
slouken@416
     1
Makefile.in
slouken@416
     2
Makefile
slouken@416
     3
configure
slouken@416
     4
config.cache
slouken@416
     5
config.log
slouken@416
     6
config.status
slouken@754
     7
autom4te*
slouken@416
     8
aclocal.m4
slouken@416
     9
checkkeys
slouken@416
    10
graywin
slouken@416
    11
loopwave
slouken@416
    12
testalpha
slouken@416
    13
testbitmap
slouken@1249
    14
testblitspeed
slouken@416
    15
testcdrom
slouken@817
    16
testcpuinfo
slouken@1249
    17
testdyngl
slouken@1249
    18
testendian
slouken@416
    19
testerror
slouken@416
    20
testgamma
slouken@416
    21
testgl
slouken@416
    22
testhread
slouken@416
    23
testjoystick
slouken@416
    24
testkeys
slouken@416
    25
testlock
slouken@416
    26
testoverlay
slouken@676
    27
testoverlay2
slouken@416
    28
testpalette
slouken@416
    29
testsem
slouken@416
    30
testsprite
slouken@416
    31
testtimer
slouken@416
    32
testtypes
slouken@416
    33
testver
slouken@416
    34
testvidinfo
slouken@416
    35
testwin
slouken@416
    36
testwm
slouken@416
    37
threadwin