94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
|
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
+
-
+
|
#define read_userstate(a,b,c) read_lump_or_userstate(a,b,c,1)
// == picture ==
extern SDL_Surface*screen;
extern Uint16 picture_size;
extern int left_margin;
extern Uint32 codepage;
void init_palette(void);
void init_screen(void);
void load_pictures(void);
void set_code_page(Uint16 n);
void set_code_page(Uint32 n);
// Use only when screen is unlocked
void draw_picture(int x,int y,Uint16 img);
void draw_cell(int x,int y);
// Use only when screen is locked
void draw_text(int x,int y,const unsigned char*t,int bg,int fg);
|