Mercurial > sdl-ios-xcode
comparison src/video/xbios/SDL_xbios_centscreen.h @ 1895:c121d94672cb
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 10 Jul 2006 21:04:37 +0000 |
parents | d910939febfa |
children | 99210400e8b9 |
comparison
equal
deleted
inserted
replaced
1894:c69cee13dd76 | 1895:c121d94672cb |
---|---|
28 */ | 28 */ |
29 | 29 |
30 #ifndef _SDL_xbios_centscreen_h | 30 #ifndef _SDL_xbios_centscreen_h |
31 #define _SDL_xbios_centscreen_h | 31 #define _SDL_xbios_centscreen_h |
32 | 32 |
33 #include <mint/falcon.h> /* for trap_14_xxx macros */ | 33 #include <mint/falcon.h> /* for trap_14_xxx macros */ |
34 | 34 |
35 #include "SDL_xbios.h" | 35 #include "SDL_xbios.h" |
36 | 36 |
37 /*--- Defines ---*/ | 37 /*--- Defines ---*/ |
38 | 38 |
48 #define CSCREEN_STANDARD (1<<14) | 48 #define CSCREEN_STANDARD (1<<14) |
49 #define CSCREEN_DEFAULT (1<<15) | 49 #define CSCREEN_DEFAULT (1<<15) |
50 | 50 |
51 /*--- Structures ---*/ | 51 /*--- Structures ---*/ |
52 | 52 |
53 typedef struct { | 53 typedef struct |
54 unsigned short handle; /* videomode handle */ | 54 { |
55 unsigned short mode; /* Falcon videomode code */ | 55 unsigned short handle; /* videomode handle */ |
56 unsigned short physx; /* visible width */ | 56 unsigned short mode; /* Falcon videomode code */ |
57 unsigned short physy; /* visible height */ | 57 unsigned short physx; /* visible width */ |
58 unsigned short plan; /* bitplanes */ | 58 unsigned short physy; /* visible height */ |
59 unsigned short logx; /* virtual width */ | 59 unsigned short plan; /* bitplanes */ |
60 unsigned short logy; /* virtual height */ | 60 unsigned short logx; /* virtual width */ |
61 unsigned short eco; /* screen saver delay */ | 61 unsigned short logy; /* virtual height */ |
62 unsigned short eco2; /* energy star screen saver delay */ | 62 unsigned short eco; /* screen saver delay */ |
63 unsigned short wsize; /* screen width (mm) */ | 63 unsigned short eco2; /* energy star screen saver delay */ |
64 unsigned short hsize; /* screen height (mm) */ | 64 unsigned short wsize; /* screen width (mm) */ |
65 unsigned short dummy[21]; | 65 unsigned short hsize; /* screen height (mm) */ |
66 unsigned char name[32]; /* videomode name */ | 66 unsigned short dummy[21]; |
67 } __attribute__((packed)) centscreen_mode_t; | 67 unsigned char name[32]; /* videomode name */ |
68 } __attribute__ ((packed)) centscreen_mode_t; | |
68 | 69 |
69 /*--- Functions prototypes ---*/ | 70 /*--- Functions prototypes ---*/ |
70 | 71 |
71 #define Vread(current_mode) \ | 72 #define Vread(current_mode) \ |
72 (void)trap_14_wl((short)0x41,(long)(current_mode)) | 73 (void)trap_14_wl((short)0x41,(long)(current_mode)) |
114 int SDL_XBIOS_CentscreenInit(_THIS); | 115 int SDL_XBIOS_CentscreenInit(_THIS); |
115 void SDL_XBIOS_CentscreenSetmode(_THIS, int width, int height, int planes); | 116 void SDL_XBIOS_CentscreenSetmode(_THIS, int width, int height, int planes); |
116 void SDL_XBIOS_CentscreenRestore(_THIS, int prev_handle); | 117 void SDL_XBIOS_CentscreenRestore(_THIS, int prev_handle); |
117 | 118 |
118 #endif /* _SDL_xbios_centscreen_h */ | 119 #endif /* _SDL_xbios_centscreen_h */ |
120 /* vi: set ts=4 sw=4 expandtab: */ |