1 |
|
/* |
2 |
|
* video.h - Video/graphics emulation |
3 |
|
* |
4 |
< |
* SheepShaver (C) 1997-2004 Marc Hellwig and Christian Bauer |
4 |
> |
* SheepShaver (C) 1997-2005 Marc Hellwig and Christian Bauer |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
* it under the terms of the GNU General Public License as published by |
24 |
|
extern bool VideoActivated(void); |
25 |
|
extern bool VideoSnapshot(int xsize, int ysize, uint8 *p); |
26 |
|
|
27 |
< |
extern int16 VideoDoDriverIO(void *spaceID, void *commandID, void *commandContents, uint32 commandCode, uint32 commandKind); |
27 |
> |
extern int16 VideoDoDriverIO(uint32 spaceID, uint32 commandID, uint32 commandContents, uint32 commandCode, uint32 commandKind); |
28 |
|
|
29 |
|
// System specific and internal functions/data |
30 |
|
struct VideoInfo { |
108 |
|
extern uint8 remap_mac_be[256]; |
109 |
|
extern uint8 MacCursor[68]; |
110 |
|
|
111 |
– |
struct GammaTbl; |
112 |
– |
|
111 |
|
struct VidLocals{ |
112 |
|
uint16 saveMode; |
113 |
|
uint32 saveData; |
114 |
|
uint16 savePage; |
115 |
|
uint32 saveBaseAddr; |
116 |
< |
GammaTbl *gammaTable; // Current gamma table |
116 |
> |
uint32 gammaTable; // Mac address of gamma tble |
117 |
|
uint32 maxGammaTableSize; // Biggest gamma table allocated |
118 |
|
uint32 saveVidParms; |
119 |
|
bool luminanceMapping; // Luminance mapping on/off |
123 |
|
uint32 cursorSet; |
124 |
|
uint32 vslServiceID; // VSL interrupt service ID |
125 |
|
bool interruptsEnabled; // VBL interrupts on/off |
126 |
< |
uint32 regEntryID[4]; |
126 |
> |
uint32 regEntryID; // Mac address of the service owner |
127 |
|
}; |
128 |
|
|
129 |
|
extern VidLocals *private_data; // Pointer to driver local variables (there is only one display, so this is ok) |
136 |
|
|
137 |
|
extern void video_set_palette(void); |
138 |
|
extern void video_set_cursor(void); |
139 |
+ |
extern bool video_can_change_cursor(void); |
140 |
|
extern int16 video_mode_change(VidLocals *csSave, uint32 ParamPtr); |
141 |
|
|
142 |
|
extern int16 VSLDoInterruptService(uint32 arg1); |
143 |
< |
extern void NQDMisc(uint32 arg1, void *arg2); |
143 |
> |
extern void NQDMisc(uint32 arg1, uintptr arg2); |
144 |
|
|
145 |
|
// Native QuickDraw acceleration callbacks |
146 |
|
extern bool NQD_sync_hook(uint32); |