comparison src/video/xbios/SDL_xbios_centscreen.h @ 1662:782fd950bd46 SDL-1.3

Revamp of the video system in progress - adding support for multiple displays, multiple windows, and a full video mode selection API. WARNING: None of the video drivers have been updated for the new API yet! The API is still under design and very fluid. The code is now run through a consistent indent format: indent -i4 -nut -nsc -br -ce The headers are being converted to automatically generate doxygen documentation.
author Sam Lantinga <slouken@libsdl.org>
date Sun, 28 May 2006 13:04:16 +0000
parents d910939febfa
children 4da1ee79c9af
comparison
equal deleted inserted replaced
1661:281d3f4870e5 1662:782fd950bd46
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))
109 #define Vsize(mode) \ 110 #define Vsize(mode) \
110 (long)trap_14_wl((short)0x54,(long)(mode)) 111 (long)trap_14_wl((short)0x54,(long)(mode))
111 112
112 /*--- Functions prototypes ---*/ 113 /*--- Functions prototypes ---*/
113 114
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: */