Mercurial > sdl-ios-xcode
annotate docs/html/sdldestroycond.html @ 637:6862d4294870
te: 27 Jun 2003 21:16:01 +0100
From: Alan Swanson
Subject: [SDL] New XFree 4.3 Video Mode Patch
The current patch to fix the issues with XFree 4.3 it is a bit of
overkill to a simple problem. Default screen settings should be set in
X, not selected by SDL with environment variables. Any program or user
using non-standard or unset display modes get what they deserve :-)
If you look at the unsorted list of modes returned by X, here's mine;
1280 x 1024 @ 85.0 >
1024 x 768 @ 100.3 > USER
800 x 600 @ 125.5 > SET
640 x 480 @ 124.9 >
1280 x 1024 @ 75.0 ]
1280 x 1024 @ 60.0 ]
1280 x 960 @ 85.0 ] X11
1280 x 960 @ 60.0 ] AUTO
1152 x 864 @ 75.0 ]
1152 x 768 @ 54.8 ]
960 x 720 @ 120.0 ]
...
640 x 400 @ 85.1 ] 256k
576 x 432 @ 150.0 ] 249k PIXEL
640 x 350 @ 85.1 ] 224k COUNT
576 x 384 @ 109.6 ] 221k
...
The user set modes come first followed by X set modes which are ordered
by decreasing number of pixels and refresh.
The reason why every other library or program not using SDL was working
is due to SDL scanning the modes in reverse getting X11 provided modes
modes with the lowest refresh.
The solution is to scan forward for the first user set mode or highest X
mode. The qsort still keeps user set modes above higher refresh modes
added by X.
For the best match we still reverse search for the nearest larger size
and then try to find a higher version of it.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 28 Jun 2003 17:16:52 +0000 |
parents | e5bc29de3f0a |
children | 355632dca928 |
rev | line source |
---|---|
0 | 1 <HTML |
2 ><HEAD | |
3 ><TITLE | |
4 >SDL_DestroyCond</TITLE | |
5 ><META | |
6 NAME="GENERATOR" | |
55
55f1f1b3e27d
Added new docs for SDL 1.2.1
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
7 CONTENT="Modular DocBook HTML Stylesheet Version 1.64 |
0 | 8 "><LINK |
9 REL="HOME" | |
10 TITLE="SDL Library Documentation" | |
11 HREF="index.html"><LINK | |
12 REL="UP" | |
13 TITLE="Multi-threaded Programming" | |
14 HREF="thread.html"><LINK | |
15 REL="PREVIOUS" | |
16 TITLE="SDL_CreateCond" | |
17 HREF="sdlcreatecond.html"><LINK | |
18 REL="NEXT" | |
19 TITLE="SDL_CondSignal" | |
20 HREF="sdlcondsignal.html"></HEAD | |
21 ><BODY | |
22 CLASS="REFENTRY" | |
23 BGCOLOR="#FFF8DC" | |
24 TEXT="#000000" | |
25 LINK="#0000ee" | |
26 VLINK="#551a8b" | |
27 ALINK="#ff0000" | |
28 ><DIV | |
29 CLASS="NAVHEADER" | |
30 ><TABLE | |
31 WIDTH="100%" | |
32 BORDER="0" | |
33 CELLPADDING="0" | |
34 CELLSPACING="0" | |
35 ><TR | |
36 ><TH | |
37 COLSPAN="3" | |
38 ALIGN="center" | |
39 >SDL Library Documentation</TH | |
40 ></TR | |
41 ><TR | |
42 ><TD | |
43 WIDTH="10%" | |
44 ALIGN="left" | |
45 VALIGN="bottom" | |
46 ><A | |
47 HREF="sdlcreatecond.html" | |
48 >Prev</A | |
49 ></TD | |
50 ><TD | |
51 WIDTH="80%" | |
52 ALIGN="center" | |
53 VALIGN="bottom" | |
54 ></TD | |
55 ><TD | |
56 WIDTH="10%" | |
57 ALIGN="right" | |
58 VALIGN="bottom" | |
59 ><A | |
60 HREF="sdlcondsignal.html" | |
61 >Next</A | |
62 ></TD | |
63 ></TR | |
64 ></TABLE | |
65 ><HR | |
66 ALIGN="LEFT" | |
67 WIDTH="100%"></DIV | |
68 ><H1 | |
69 ><A | |
70 NAME="SDLDESTROYCOND" | |
71 >SDL_DestroyCond</A | |
72 ></H1 | |
73 ><DIV | |
74 CLASS="REFNAMEDIV" | |
75 ><A | |
181
e5bc29de3f0a
Updated from the SDL Documentation Project
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
76 NAME="AEN7900" |
0 | 77 ></A |
78 ><H2 | |
79 >Name</H2 | |
80 >SDL_DestroyCond -- Destroy a condition variable</DIV | |
81 ><DIV | |
82 CLASS="REFSYNOPSISDIV" | |
83 ><A | |
181
e5bc29de3f0a
Updated from the SDL Documentation Project
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
84 NAME="AEN7903" |
0 | 85 ></A |
86 ><H2 | |
87 >Synopsis</H2 | |
88 ><DIV | |
89 CLASS="FUNCSYNOPSIS" | |
90 ><A | |
181
e5bc29de3f0a
Updated from the SDL Documentation Project
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
91 NAME="AEN7904" |
0 | 92 ></A |
93 ><P | |
94 ></P | |
95 ><PRE | |
96 CLASS="FUNCSYNOPSISINFO" | |
97 >#include "SDL.h" | |
98 #include "SDL_thread.h"</PRE | |
99 ><P | |
100 ><CODE | |
101 ><CODE | |
102 CLASS="FUNCDEF" | |
103 >void <B | |
104 CLASS="FSFUNC" | |
105 >SDL_DestroyCond</B | |
106 ></CODE | |
107 >(SDL_cond *cond);</CODE | |
108 ></P | |
109 ><P | |
110 ></P | |
111 ></DIV | |
112 ></DIV | |
113 ><DIV | |
114 CLASS="REFSECT1" | |
115 ><A | |
181
e5bc29de3f0a
Updated from the SDL Documentation Project
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
116 NAME="AEN7910" |
0 | 117 ></A |
118 ><H2 | |
119 >Description</H2 | |
120 ><P | |
121 >Destroys a condition variable.</P | |
122 ></DIV | |
123 ><DIV | |
124 CLASS="REFSECT1" | |
125 ><A | |
181
e5bc29de3f0a
Updated from the SDL Documentation Project
Sam Lantinga <slouken@libsdl.org>
parents:
55
diff
changeset
|
126 NAME="AEN7913" |
0 | 127 ></A |
128 ><H2 | |
129 >See Also</H2 | |
130 ><P | |
131 ><A | |
132 HREF="sdlcreatecond.html" | |
133 ><TT | |
134 CLASS="FUNCTION" | |
135 >SDL_CreateCond</TT | |
136 ></A | |
137 ></P | |
138 ></DIV | |
139 ><DIV | |
140 CLASS="NAVFOOTER" | |
141 ><HR | |
142 ALIGN="LEFT" | |
143 WIDTH="100%"><TABLE | |
144 WIDTH="100%" | |
145 BORDER="0" | |
146 CELLPADDING="0" | |
147 CELLSPACING="0" | |
148 ><TR | |
149 ><TD | |
150 WIDTH="33%" | |
151 ALIGN="left" | |
152 VALIGN="top" | |
153 ><A | |
154 HREF="sdlcreatecond.html" | |
155 >Prev</A | |
156 ></TD | |
157 ><TD | |
158 WIDTH="34%" | |
159 ALIGN="center" | |
160 VALIGN="top" | |
161 ><A | |
162 HREF="index.html" | |
163 >Home</A | |
164 ></TD | |
165 ><TD | |
166 WIDTH="33%" | |
167 ALIGN="right" | |
168 VALIGN="top" | |
169 ><A | |
170 HREF="sdlcondsignal.html" | |
171 >Next</A | |
172 ></TD | |
173 ></TR | |
174 ><TR | |
175 ><TD | |
176 WIDTH="33%" | |
177 ALIGN="left" | |
178 VALIGN="top" | |
179 >SDL_CreateCond</TD | |
180 ><TD | |
181 WIDTH="34%" | |
182 ALIGN="center" | |
183 VALIGN="top" | |
184 ><A | |
185 HREF="thread.html" | |
186 >Up</A | |
187 ></TD | |
188 ><TD | |
189 WIDTH="33%" | |
190 ALIGN="right" | |
191 VALIGN="top" | |
192 >SDL_CondSignal</TD | |
193 ></TR | |
194 ></TABLE | |
195 ></DIV | |
196 ></BODY | |
197 ></HTML | |
198 > |