Mercurial > sdl-ios-xcode
annotate INSTALL @ 5043:da347bfed240
Florian Forster to sdl
in SDL 1.3 (revision 5508 from SVN), the method used to calculate the
bits per pixel from a “int format” differ between “SDL_ListModes” (which
always uses the “SDL_BITSPERPIXEL” macro) and “SDL_PixelFormatEnumTo-
Masks” (which uses either “SDL_BITSPERPIXEL” or “SDL_BYTESPERPIXEL * 8”,
depending on the value of “SDL_BYTESPERPIXEL”).
Because the values are later compared in “SDL_ListModes” this may lead
to some valid video modes not being returned. In my case the only mode
returned by “SDL_GetNumDisplayModes” was dismissed and NULL was
returned. (This led to the calling application sticking its head in the
sand.)
The attached patch copies the method used within “SDL_PixelFormatEnumTo-
Masks” to “SDL_ListModes”. This solved the problem for me though I don't
fully understand the method used by “SDL_PixelFormatEnumToMasks”.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 19 Jan 2011 16:06:47 -0800 |
parents | 00e7c6b7eb03 |
children |
rev | line source |
---|---|
0 | 1 |
2 To compile and install SDL: | |
3 | |
3561
00e7c6b7eb03
Added svn checkout install step
Sam Lantinga <slouken@libsdl.org>
parents:
866
diff
changeset
|
4 0. If you have downloaded this from the website, skip to the next step. |
00e7c6b7eb03
Added svn checkout install step
Sam Lantinga <slouken@libsdl.org>
parents:
866
diff
changeset
|
5 If you have checked this out from subversion, you'll need to run |
00e7c6b7eb03
Added svn checkout install step
Sam Lantinga <slouken@libsdl.org>
parents:
866
diff
changeset
|
6 ./autogen.sh to build the configure script. |
00e7c6b7eb03
Added svn checkout install step
Sam Lantinga <slouken@libsdl.org>
parents:
866
diff
changeset
|
7 |
0 | 8 1. Run './configure; make; make install' |
9 | |
866
0a45995a7fc3
Date: Tue, 2 Mar 2004 11:34:54 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
533
diff
changeset
|
10 If you are compiling for Windows using gcc, read the FAQ at: |
0a45995a7fc3
Date: Tue, 2 Mar 2004 11:34:54 +0100
Sam Lantinga <slouken@libsdl.org>
parents:
533
diff
changeset
|
11 http://www.libsdl.org/faq.php?action=listentries&category=4#42 |
0 | 12 |
13 If you are compiling using Visual C++ on Win32, you should read | |
14 the file VisualC.html | |
15 | |
16 2. Look at the example programs in ./test, and check out the HTML | |
17 documentation in ./docs to see how to use the SDL library. | |
18 | |
19 3. Join the SDL developer mailing list by sending E-mail to | |
253
b23d3c5a32f3
Updated mailing list information
Sam Lantinga <slouken@libsdl.org>
parents:
0
diff
changeset
|
20 sdl-request@libsdl.org |
b23d3c5a32f3
Updated mailing list information
Sam Lantinga <slouken@libsdl.org>
parents:
0
diff
changeset
|
21 and put "subscribe" in the subject of the message. |
0 | 22 |
253
b23d3c5a32f3
Updated mailing list information
Sam Lantinga <slouken@libsdl.org>
parents:
0
diff
changeset
|
23 Or alternatively you can use the web interface: |
533
263e4884f70d
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
253
diff
changeset
|
24 http://www.libsdl.org/mailing-list.php |
0 | 25 |
26 That's it! | |
27 Sam Lantinga <slouken@libsdl.org> |