Mercurial > sdl-ios-xcode
view src/video/Makefile.wat @ 1257:448a9a64537b
[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.
author | Patrice Mandin <patmandin@gmail.com> |
---|---|
date | Thu, 19 Jan 2006 21:28:52 +0000 |
parents | 173c063d4f55 |
children |
line wrap: on
line source
#============================================================================= # This is a Watcom makefile to build SDL.DLL for OS/2 # # Makefile for threading #============================================================================= object_files=SDL_blit.obj SDL_blit_0.obj SDL_blit_1.obj SDL_blit_A.obj SDL_blit_N.obj SDL_bmp.obj SDL_cursor.obj SDL_gamma.obj SDL_pixels.obj SDL_RLEaccel.obj SDL_stretch.obj SDL_surface.obj SDL_video.obj SDL_yuv.obj SDL_yuv_mmx.obj SDL_yuv_sw.obj SDL_os2fslib.obj ExtraCFlags=-dUSE_DOSSETPRIORITY # #============================================================================== # !include ..\..\Watcom.mif .before set include=$(%os2tk)\h;$(%include);../../include;../;./os2;../events;../hermes;$(%FSLIB); all : $(object_files) SDL_os2fslib.obj : .AUTODEPEND wcc386 os2fslib\SDL_os2fslib.c $(cflags) clean : .SYMBOLIC @if exist *.obj del *.obj @if exist *.map del *.map @if exist *.res del *.res @if exist *.lst del *.lst