Mercurial > sdl-ios-xcode
comparison src/video/Xext/extensions/xf86vmode.h @ 1668:4da1ee79c9af SDL-1.3
more tweaking indent options
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 29 May 2006 04:04:35 +0000 |
parents | 782fd950bd46 |
children |
comparison
equal
deleted
inserted
replaced
1667:1fddae038bc8 | 1668:4da1ee79c9af |
---|---|
103 /* private is a C++ reserved word */ | 103 /* private is a C++ reserved word */ |
104 INT32 *c_private; | 104 INT32 *c_private; |
105 #else | 105 #else |
106 INT32 *private; | 106 INT32 *private; |
107 #endif | 107 #endif |
108 } SDL_NAME (XF86VidModeModeLine); | 108 } SDL_NAME(XF86VidModeModeLine); |
109 | 109 |
110 typedef struct | 110 typedef struct |
111 { | 111 { |
112 unsigned int dotclock; | 112 unsigned int dotclock; |
113 unsigned short hdisplay; | 113 unsigned short hdisplay; |
125 /* private is a C++ reserved word */ | 125 /* private is a C++ reserved word */ |
126 INT32 *c_private; | 126 INT32 *c_private; |
127 #else | 127 #else |
128 INT32 *private; | 128 INT32 *private; |
129 #endif | 129 #endif |
130 } SDL_NAME (XF86VidModeModeInfo); | 130 } SDL_NAME(XF86VidModeModeInfo); |
131 | 131 |
132 typedef struct | 132 typedef struct |
133 { | 133 { |
134 float hi; | 134 float hi; |
135 float lo; | 135 float lo; |
136 } SDL_NAME (XF86VidModeSyncRange); | 136 } SDL_NAME(XF86VidModeSyncRange); |
137 | 137 |
138 typedef struct | 138 typedef struct |
139 { | 139 { |
140 char *vendor; | 140 char *vendor; |
141 char *model; | 141 char *model; |
142 float EMPTY; | 142 float EMPTY; |
143 unsigned char nhsync; | 143 unsigned char nhsync; |
144 SDL_NAME (XF86VidModeSyncRange) * hsync; | 144 SDL_NAME(XF86VidModeSyncRange) * hsync; |
145 unsigned char nvsync; | 145 unsigned char nvsync; |
146 SDL_NAME (XF86VidModeSyncRange) * vsync; | 146 SDL_NAME(XF86VidModeSyncRange) * vsync; |
147 } SDL_NAME (XF86VidModeMonitor); | 147 } SDL_NAME(XF86VidModeMonitor); |
148 | 148 |
149 typedef struct | 149 typedef struct |
150 { | 150 { |
151 int type; /* of event */ | 151 int type; /* of event */ |
152 unsigned long serial; /* # of last request processed by server */ | 152 unsigned long serial; /* # of last request processed by server */ |
155 Window root; /* root window of event screen */ | 155 Window root; /* root window of event screen */ |
156 int state; /* What happened */ | 156 int state; /* What happened */ |
157 int kind; /* What happened */ | 157 int kind; /* What happened */ |
158 Bool forced; /* extents of new region */ | 158 Bool forced; /* extents of new region */ |
159 Time time; /* event timestamp */ | 159 Time time; /* event timestamp */ |
160 } SDL_NAME (XF86VidModeNotifyEvent); | 160 } SDL_NAME(XF86VidModeNotifyEvent); |
161 | 161 |
162 typedef struct | 162 typedef struct |
163 { | 163 { |
164 float red; /* Red Gamma value */ | 164 float red; /* Red Gamma value */ |
165 float green; /* Green Gamma value */ | 165 float green; /* Green Gamma value */ |
166 float blue; /* Blue Gamma value */ | 166 float blue; /* Blue Gamma value */ |
167 } SDL_NAME (XF86VidModeGamma); | 167 } SDL_NAME(XF86VidModeGamma); |
168 | 168 |
169 | 169 |
170 #define SDL_XF86VidModeSelectNextMode(disp, scr) \ | 170 #define SDL_XF86VidModeSelectNextMode(disp, scr) \ |
171 SDL_NAME(XF86VidModeSwitchMode)(disp, scr, 1) | 171 SDL_NAME(XF86VidModeSwitchMode)(disp, scr, 1) |
172 #define SDL_XF86VidModeSelectPrevMode(disp, scr) \ | 172 #define SDL_XF86VidModeSelectPrevMode(disp, scr) \ |
173 SDL_NAME(XF86VidModeSwitchMode)(disp, scr, -1) | 173 SDL_NAME(XF86VidModeSwitchMode)(disp, scr, -1) |
174 | 174 |
175 _XFUNCPROTOBEGIN | 175 _XFUNCPROTOBEGIN Bool SDL_NAME(XF86VidModeQueryVersion) (Display * /* dpy */ , |
176 Bool SDL_NAME (XF86VidModeQueryVersion) (Display * /* dpy */ , | 176 int * |
177 int * /* majorVersion */ , | 177 /* majorVersion */ , |
178 int * /* minorVersion */ | 178 int * /* minorVersion */ |
179 ); | 179 ); |
180 | 180 |
181 Bool SDL_NAME (XF86VidModeQueryExtension) (Display * /* dpy */ , | 181 Bool SDL_NAME(XF86VidModeQueryExtension) (Display * /* dpy */ , |
182 int * /* event_base */ , | 182 int * /* event_base */ , |
183 int * /* error_base */ | 183 int * /* error_base */ |
184 ); | 184 ); |
185 | 185 |
186 Bool SDL_NAME (XF86VidModeSetClientVersion) (Display * /* dpy */ | 186 Bool SDL_NAME(XF86VidModeSetClientVersion) (Display * /* dpy */ |
187 ); | 187 ); |
188 | 188 |
189 Bool SDL_NAME (XF86VidModeGetModeLine) (Display * /* dpy */ , | 189 Bool SDL_NAME(XF86VidModeGetModeLine) (Display * /* dpy */ , |
190 int /* screen */ , | 190 int /* screen */ , |
191 int * /* dotclock */ , | 191 int * /* dotclock */ , |
192 SDL_NAME (XF86VidModeModeLine) * /* modeline */ | 192 SDL_NAME(XF86VidModeModeLine) * /* modeline */ |
193 ); | 193 ); |
194 | 194 |
195 Bool SDL_NAME (XF86VidModeGetAllModeLines) (Display * /* dpy */ , | 195 Bool SDL_NAME(XF86VidModeGetAllModeLines) (Display * /* dpy */ , |
196 int /* screen */ , | |
197 int * /* modecount */ , | |
198 SDL_NAME(XF86VidModeModeInfo) *** /* modelinesPtr */ | |
199 ); | |
200 | |
201 Bool SDL_NAME(XF86VidModeAddModeLine) (Display * /* dpy */ , | |
202 int /* screen */ , | |
203 SDL_NAME(XF86VidModeModeInfo) * | |
204 /* new modeline */ , | |
205 SDL_NAME(XF86VidModeModeInfo) * /* after modeline */ | |
206 ); | |
207 | |
208 Bool SDL_NAME(XF86VidModeDeleteModeLine) (Display * /* dpy */ , | |
209 int /* screen */ , | |
210 SDL_NAME(XF86VidModeModeInfo) * /* modeline */ | |
211 ); | |
212 | |
213 Bool SDL_NAME(XF86VidModeModModeLine) (Display * /* dpy */ , | |
214 int /* screen */ , | |
215 SDL_NAME(XF86VidModeModeLine) * /* modeline */ | |
216 ); | |
217 | |
218 Status SDL_NAME(XF86VidModeValidateModeLine) (Display * /* dpy */ , | |
219 int /* screen */ , | |
220 SDL_NAME(XF86VidModeModeInfo) * /* modeline */ | |
221 ); | |
222 | |
223 Bool SDL_NAME(XF86VidModeSwitchMode) (Display * /* dpy */ , | |
224 int /* screen */ , | |
225 int /* zoom */ | |
226 ); | |
227 | |
228 Bool SDL_NAME(XF86VidModeSwitchToMode) (Display * /* dpy */ , | |
229 int /* screen */ , | |
230 SDL_NAME(XF86VidModeModeInfo) * /* modeline */ | |
231 ); | |
232 | |
233 Bool SDL_NAME(XF86VidModeLockModeSwitch) (Display * /* dpy */ , | |
234 int /* screen */ , | |
235 int /* lock */ | |
236 ); | |
237 | |
238 Bool SDL_NAME(XF86VidModeGetMonitor) (Display * /* dpy */ , | |
239 int /* screen */ , | |
240 SDL_NAME(XF86VidModeMonitor) * /* monitor */ | |
241 ); | |
242 | |
243 Bool SDL_NAME(XF86VidModeGetViewPort) (Display * /* dpy */ , | |
244 int /* screen */ , | |
245 int * /* x return */ , | |
246 int * /* y return */ | |
247 ); | |
248 | |
249 Bool SDL_NAME(XF86VidModeSetViewPort) (Display * /* dpy */ , | |
250 int /* screen */ , | |
251 int /* x */ , | |
252 int /* y */ | |
253 ); | |
254 | |
255 Bool SDL_NAME(XF86VidModeGetDotClocks) (Display * /* dpy */ , | |
256 int /* screen */ , | |
257 int * /* flags return */ , | |
258 int * /* number of clocks return */ , | |
259 int * /* max dot clock return */ , | |
260 int ** /* clocks return */ | |
261 ); | |
262 | |
263 Bool SDL_NAME(XF86VidModeGetGamma) (Display * /* dpy */ , | |
264 int /* screen */ , | |
265 SDL_NAME(XF86VidModeGamma) * /* Gamma */ | |
266 ); | |
267 | |
268 Bool SDL_NAME(XF86VidModeSetGamma) (Display * /* dpy */ , | |
269 int /* screen */ , | |
270 SDL_NAME(XF86VidModeGamma) * /* Gamma */ | |
271 ); | |
272 | |
273 Bool SDL_NAME(XF86VidModeSetGammaRamp) (Display * /* dpy */ , | |
274 int /* screen */ , | |
275 int /* size */ , | |
276 unsigned short * /* red array */ , | |
277 unsigned short * /* green array */ , | |
278 unsigned short * /* blue array */ | |
279 ); | |
280 | |
281 Bool SDL_NAME(XF86VidModeGetGammaRamp) (Display * /* dpy */ , | |
282 int /* screen */ , | |
283 int /* size */ , | |
284 unsigned short * /* red array */ , | |
285 unsigned short * /* green array */ , | |
286 unsigned short * /* blue array */ | |
287 ); | |
288 | |
289 Bool SDL_NAME(XF86VidModeGetGammaRampSize) (Display * /* dpy */ , | |
196 int /* screen */ , | 290 int /* screen */ , |
197 int * /* modecount */ , | 291 int * /* size */ |
198 SDL_NAME (XF86VidModeModeInfo) *** /* modelinesPtr */ | |
199 ); | |
200 | |
201 Bool SDL_NAME (XF86VidModeAddModeLine) (Display * /* dpy */ , | |
202 int /* screen */ , | |
203 SDL_NAME (XF86VidModeModeInfo) * | |
204 /* new modeline */ , | |
205 SDL_NAME (XF86VidModeModeInfo) * /* after modeline */ | |
206 ); | |
207 | |
208 Bool SDL_NAME (XF86VidModeDeleteModeLine) (Display * /* dpy */ , | |
209 int /* screen */ , | |
210 SDL_NAME (XF86VidModeModeInfo) * /* modeline */ | |
211 ); | |
212 | |
213 Bool SDL_NAME (XF86VidModeModModeLine) (Display * /* dpy */ , | |
214 int /* screen */ , | |
215 SDL_NAME (XF86VidModeModeLine) * /* modeline */ | |
216 ); | |
217 | |
218 Status SDL_NAME (XF86VidModeValidateModeLine) (Display * /* dpy */ , | |
219 int /* screen */ , | |
220 SDL_NAME (XF86VidModeModeInfo) * /* modeline */ | |
221 ); | |
222 | |
223 Bool SDL_NAME (XF86VidModeSwitchMode) (Display * /* dpy */ , | |
224 int /* screen */ , | |
225 int /* zoom */ | |
226 ); | |
227 | |
228 Bool SDL_NAME (XF86VidModeSwitchToMode) (Display * /* dpy */ , | |
229 int /* screen */ , | |
230 SDL_NAME (XF86VidModeModeInfo) * /* modeline */ | |
231 ); | |
232 | |
233 Bool SDL_NAME (XF86VidModeLockModeSwitch) (Display * /* dpy */ , | |
234 int /* screen */ , | |
235 int /* lock */ | |
236 ); | |
237 | |
238 Bool SDL_NAME (XF86VidModeGetMonitor) (Display * /* dpy */ , | |
239 int /* screen */ , | |
240 SDL_NAME (XF86VidModeMonitor) * /* monitor */ | |
241 ); | |
242 | |
243 Bool SDL_NAME (XF86VidModeGetViewPort) (Display * /* dpy */ , | |
244 int /* screen */ , | |
245 int * /* x return */ , | |
246 int * /* y return */ | |
247 ); | |
248 | |
249 Bool SDL_NAME (XF86VidModeSetViewPort) (Display * /* dpy */ , | |
250 int /* screen */ , | |
251 int /* x */ , | |
252 int /* y */ | |
253 ); | |
254 | |
255 Bool SDL_NAME (XF86VidModeGetDotClocks) (Display * /* dpy */ , | |
256 int /* screen */ , | |
257 int * /* flags return */ , | |
258 int * /* number of clocks return */ , | |
259 int * /* max dot clock return */ , | |
260 int ** /* clocks return */ | |
261 ); | |
262 | |
263 Bool SDL_NAME (XF86VidModeGetGamma) (Display * /* dpy */ , | |
264 int /* screen */ , | |
265 SDL_NAME (XF86VidModeGamma) * /* Gamma */ | |
266 ); | |
267 | |
268 Bool SDL_NAME (XF86VidModeSetGamma) (Display * /* dpy */ , | |
269 int /* screen */ , | |
270 SDL_NAME (XF86VidModeGamma) * /* Gamma */ | |
271 ); | |
272 | |
273 Bool SDL_NAME (XF86VidModeSetGammaRamp) (Display * /* dpy */ , | |
274 int /* screen */ , | |
275 int /* size */ , | |
276 unsigned short * /* red array */ , | |
277 unsigned short * /* green array */ , | |
278 unsigned short * /* blue array */ | |
279 ); | |
280 | |
281 Bool SDL_NAME (XF86VidModeGetGammaRamp) (Display * /* dpy */ , | |
282 int /* screen */ , | |
283 int /* size */ , | |
284 unsigned short * /* red array */ , | |
285 unsigned short * /* green array */ , | |
286 unsigned short * /* blue array */ | |
287 ); | |
288 | |
289 Bool SDL_NAME (XF86VidModeGetGammaRampSize) (Display * /* dpy */ , | |
290 int /* screen */ , | |
291 int * /* size */ | |
292 ); | 292 ); |
293 | 293 |
294 | 294 |
295 _XFUNCPROTOEND | 295 _XFUNCPROTOEND |
296 #endif | 296 #endif |