Overhaul the game's "rendering pipeline", simplifying it a fair bit
- Also significantly improves performance
This commit is contained in:
@@ -27,7 +27,6 @@ CursorRef cursors[24] = {
|
||||
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
|
||||
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
|
||||
};
|
||||
void (*redraw_screen)();
|
||||
RECT bg[21];
|
||||
RECT map_pat[30];
|
||||
RECT bw_pats[6];
|
||||
@@ -44,8 +43,7 @@ void clean_up_graphtool(){
|
||||
CleanUp();
|
||||
}
|
||||
|
||||
void init_graph_tool(void (*redraw_callback)()){
|
||||
redraw_screen = redraw_callback;
|
||||
void init_graph_tool(){
|
||||
int i,j;
|
||||
// TODO: The duplication of location here shouldn't be necessary
|
||||
// TODO: Store the hotspots on disk instead of hardcoded here
|
||||
|
@@ -94,7 +94,7 @@ struct cCustomGraphics {
|
||||
|
||||
|
||||
|
||||
void init_graph_tool(void (*redraw_callback)());
|
||||
void init_graph_tool();
|
||||
void clean_up_graphtool();
|
||||
void set_cursor(cursor_type which_curs);
|
||||
void restore_cursor();
|
||||
|
Reference in New Issue
Block a user