|
|
1.1 ! root 1: /* ! 2: * UAE - The Un*x Amiga Emulator ! 3: * ! 4: * DOS VESA BIOS / VGA / Mode X graphics interface. ! 5: * ! 6: * (c) 1997 Gustavo Goedert ! 7: */ ! 8: ! 9: typedef enum {T16, T256, T32K, T64K, T16M} T_ModeType; ! 10: ! 11: typedef struct { ! 12: T_ModeType ModeType; ! 13: int ModeWidth, ModeHeight; ! 14: int BitsPerPixel, BitsPerColor; ! 15: int RedSize, RedPosition; ! 16: int GreenSize, GreenPosition; ! 17: int BlueSize, BluePosition; ! 18: int LineLength, LogicalLineLength; ! 19: int HasWindow; ! 20: unsigned int WindowSize, WindowMappingSize, WindowAddress; ! 21: int HasLinear; ! 22: unsigned int LinearSize, LinearMappingSize, LinearAddress; ! 23: char *MappedAddress; ! 24: void (*ChangeBank)(int BankNumber); ! 25: void (*PutLine)(char *Address, int y); ! 26: } T_ModeInfo; ! 27: ! 28: extern int NumberOfModes; ! 29: extern T_ModeInfo *ModeList; ! 30: extern T_ModeInfo CurrentMode; ! 31: extern int CanMapBuffer; ! 32: extern int CurrentBankNumber; ! 33: ! 34: void SetPalette(int Color, int Red, int Green, int Blue); ! 35: void DelayedSetPalette(int Color, int Red, int Green, int Blue); ! 36: void ViewPalette(int Color, int *Red, int *Green, int *Blue); ! 37: void LoadPalette(void); ! 38: int InitGfxLib(void); ! 39: void CloseGfxLib(void); ! 40: int SetMode(int ModeNumber, int Linear); ! 41: void SaveMode(void); ! 42: void RestoreMode(void);
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.