Added video 'Alternative update-lock' option that may help performance on some machines. Patch from bit.
This commit is contained in:
parent
f9bd0b844f
commit
5d1b2e4f83
8 changed files with 1516 additions and 1491 deletions
|
|
@ -9,10 +9,10 @@
|
|||
struct sdl_render_driver;
|
||||
|
||||
typedef struct sdl_renderer_t {
|
||||
int (*init)(SDL_Window* window, struct sdl_render_driver driver, BITMAP* screen);
|
||||
int (*init)(SDL_Window* window, struct sdl_render_driver driver, SDL_Rect screen);
|
||||
void (*close)();
|
||||
void (*update)(SDL_Window* window, SDL_Rect updated_rect, BITMAP* screen);
|
||||
void (*present)(SDL_Window* window, SDL_Rect texture_rect, SDL_Rect window_rect, BITMAP* screen);
|
||||
void (*present)(SDL_Window* window, SDL_Rect texture_rect, SDL_Rect window_rect, SDL_Rect screen);
|
||||
int always_update;
|
||||
} sdl_renderer_t;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue