Remove duplicate information in set_cmode

Calculating render_mode and display_mode variables from the arrays means
less chance of mistakes (e.g. blob mode RENDER_EFFE was set in
render_modes array but not in render_mode)
This commit is contained in:
jacksonmj
2012-03-26 15:56:16 +01:00
parent 74c72b8e90
commit 156d50d903
3 changed files with 12 additions and 20 deletions

View File

@@ -223,6 +223,9 @@ int sdl_open(void);
int draw_debug_info(pixel* vid, int lm, int lx, int ly, int cx, int cy, int line_x, int line_y);
void init_display_modes();
void update_display_modes();
#ifdef OGLR
void clearScreen(float alpha);
void ogl_blit(int x, int y, int w, int h, pixel *src, int pitch, int scale);