Mercurial > sdl-ios-xcode
comparison README.QNX @ 753:b14fdadd8311
Date: Thu, 4 Dec 2003 07:48:40 +0200
From: "Mike Gorchak"
Subject: SDL/QNX6 new patch
Here in attachment my patch for the SDL/QNX6 again :) It contain non-crtitical/cosmetic fixes:
1. Fixed window centering at other than the first consoles.
2. Fixed window centering algorithm in case when window height or width are greater than the desktop resolution.
3. Fixed window positioning on other than the first consoles.
4. Fixed occasional input focus lost when switching to fullscreen.
5. Removed the Photon's default chroma color for the overlays, added RGB(12, 6, 12) color instead (very dark pink).
6. Added more checks to the YUV overlay code (fixed crashes during resolution mode switches).
7. Added support for Enter/Backspace keys in unicode mode (used by Maelstrom and by other games).
8. Fixed window restore/maximize function. It works, finally.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 10 Dec 2003 12:35:56 +0000 |
parents | cbc0f7fabd1c |
children | 30168104389f |
comparison
equal
deleted
inserted
replaced
752:4bb432a0f6e0 | 753:b14fdadd8311 |
---|---|
1 README by Mike Gorchak <mike@malva.ua>, <lestat@i.com.ua> | 1 README by Mike Gorchak <mike@malva.ua>, <lestat@i.com.ua> |
2 Last changed at 12 Aug 2003. | 2 Last changed at 30 Sep 2003. |
3 | |
4 ====================================================================== | |
5 Table of Contents: | |
6 | |
7 1. OpenGL. | |
8 2. Wheel and multi-button mouses. | |
9 3. CDROM handling issues. | |
10 4. Hardware video overlays. | |
11 5. Shared library building. | |
12 6. Some building issues. | |
13 7. Environment variables. | |
3 | 14 |
4 ====================================================================== | 15 ====================================================================== |
5 OpenGL: | 16 OpenGL: |
6 | 17 |
7 OpenGL works well and is stable, but fullscreen mode has not been | 18 OpenGL works well and is stable, but fullscreen mode has not been |
12 below 6.1.0 are not supported. | 23 below 6.1.0 are not supported. |
13 When creating an OpenGL context, software renderer mode is artifi- | 24 When creating an OpenGL context, software renderer mode is artifi- |
14 cially selected (QSSL made acceleration only for Voodoo boards in | 25 cially selected (QSSL made acceleration only for Voodoo boards in |
15 fullscreen mode, sorry but I don't have this board to test OpenGL - | 26 fullscreen mode, sorry but I don't have this board to test OpenGL - |
16 maybe it works or maybe not :)). If you want acceleration - you can | 27 maybe it works or maybe not :)). If you want acceleration - you can |
17 remove one line in the source code: find the file SDL_ph_video.c and | 28 remove one line in the source code: find the file SDL_ph_image.c and |
18 remove the following | 29 remove the following |
19 | 30 |
20 OGLAttrib[OGLargc++]=PHOGL_ATTRIB_FORCE_SW; | 31 OGLAttrib[OGLargc++]=PHOGL_ATTRIB_FORCE_SW; |
21 | 32 |
22 line in the ph_SetupOpenGLContext() function or change the argument to | 33 line in the ph_SetupOpenGLContext() function or change the argument to |
48 Access to CDROM can only be provided with 'root' privileges. I | 59 Access to CDROM can only be provided with 'root' privileges. I |
49 can't do anything about that, /dev/cd0 has brw------- permissions and | 60 can't do anything about that, /dev/cd0 has brw------- permissions and |
50 root:root rights. | 61 root:root rights. |
51 | 62 |
52 ====================================================================== | 63 ====================================================================== |
53 Video Overlays: | 64 Hardware video overlays: |
54 | 65 |
55 Overlays can flicker during window movement, resizing, etc. It | 66 Overlays can flicker during window movement, resizing, etc. It |
56 happens because the photon driver updates the real window contents be- | 67 happens because the photon driver updates the real window contents be- |
57 hind the overlay, then draws the temporary chroma key color over the | 68 hind the overlay, then draws the temporary chroma key color over the |
58 window contents. It can be done without using the chroma key but that | 69 window contents. It can be done without using the chroma key but that |
75 | 86 |
76 A shared library can be built, but before running the autogen.sh | 87 A shared library can be built, but before running the autogen.sh |
77 script you must manually delete the libtool.m4 stuff from the acinclu- | 88 script you must manually delete the libtool.m4 stuff from the acinclu- |
78 de.m4 file (it comes after the ESD detection code up to the end of the | 89 de.m4 file (it comes after the ESD detection code up to the end of the |
79 file), because the libtool stuff in the acinclude.m4 file is very old | 90 file), because the libtool stuff in the acinclude.m4 file is very old |
80 and doesn't know anything about QNX. Just remove it, then run | 91 in SDL distribution before the version 1.2.7 and doesn't know anything |
81 "libtoolize --force --copy" and after that run the autogen.sh script. | 92 about QNX. SDL 1.2.7 distribution contain the new libtool.m4 script, |
93 but anyway it is broken :), Just remove it, then run "libtoolize | |
94 --force --copy", delete the file aclocal.m4 and after that run the | |
95 autogen.sh script. | |
82 | 96 |
83 ====================================================================== | 97 ====================================================================== |
84 Some building issues: | 98 Some building issues: |
85 | 99 |
86 Feel free to not use the --disable-shared configure option if you' | 100 Feel free to not use the --disable-shared configure option if you' |
105 x11 support, e.g.: | 119 x11 support, e.g.: |
106 | 120 |
107 ./configure --with-sdl-prefix=/usr \ | 121 ./configure --with-sdl-prefix=/usr \ |
108 --with-sdl-exec-prefix=/usr \ | 122 --with-sdl-exec-prefix=/usr \ |
109 --prefix=/usr --without-x | 123 --prefix=/usr --without-x |
124 | |
125 ====================================================================== | |
126 Environment variables: | |
127 | |
128 Please note that the photon driver is sensible to the following | |
129 environmental variables: | |
130 | |
131 * SDL_VIDEO_WINDOW_POS - can be set in the "X,Y" format. If X and Y | |
132 coordinates are bigger than the current desktop resolution, then win- | |
133 dow positioning across virtual consoles is activated. If X and Y are | |
134 smaller than the desktop resolution then window positioning in the | |
135 current console is activated. The word "center" can be used instead of | |
136 coordinates, it produces the same behavior as SDL_VIDEO_CENTERED | |
137 environmental variable. | |
138 | |
139 * SDL_VIDEO_CENTERED - if this environmental variable exists then the | |
140 window centering is perfomed in the current virtual console. | |
141 | |
142 The SDL_VIDEO_CENTERED enviromental variable has greater priority | |
143 than the SDL_VIDEO_WINDOW_POS in case if both variables are supplied | |
144 to the application. |