Mercurial > sdl-ios-xcode
comparison src/video/xbios/SDL_xbios_centscreen.c @ 1061:5023cde12cbd
Add Falcon Centscreen extension support
author | Patrice Mandin <patmandin@gmail.com> |
---|---|
date | Wed, 18 May 2005 17:02:17 +0000 |
parents | |
children | fba6b67b4d60 |
comparison
equal
deleted
inserted
replaced
1060:86885b40a53b | 1061:5023cde12cbd |
---|---|
1 /* | |
2 SDL - Simple DirectMedia Layer | |
3 Copyright (C) 1997-2004 Sam Lantinga | |
4 | |
5 This library is free software; you can redistribute it and/or | |
6 modify it under the terms of the GNU Library General Public | |
7 License as published by the Free Software Foundation; either | |
8 version 2 of the License, or (at your option) any later version. | |
9 | |
10 This library is distributed in the hope that it will be useful, | |
11 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
13 Library General Public License for more details. | |
14 | |
15 You should have received a copy of the GNU Library General Public | |
16 License along with this library; if not, write to the Free | |
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
18 | |
19 Sam Lantinga | |
20 slouken@libsdl.org | |
21 */ | |
22 | |
23 /* | |
24 Centscreen extension definitions | |
25 | |
26 Patrice Mandin | |
27 */ | |
28 | |
29 #include <stdlib.h> | |
30 | |
31 #include <mint/falcon.h> | |
32 | |
33 #include "SDL_xbios.h" | |
34 #include "SDL_xbios_centscreen.h" | |
35 | |
36 void SDL_XBIOS_CentscreenInit(_THIS) | |
37 { | |
38 centscreen_mode_t curmode; | |
39 | |
40 /* Reset current mode list */ | |
41 if (XBIOS_modelist) { | |
42 free(XBIOS_modelist); | |
43 XBIOS_nummodes = 0; | |
44 XBIOS_modelist = NULL; | |
45 } | |
46 | |
47 /* Add current active mode */ | |
48 Vread(&curmode); | |
49 | |
50 SDL_XBIOS_AddMode(this, -1, curmode.physx, curmode.physy, curmode.plan, | |
51 SDL_FALSE | |
52 ); | |
53 } |