4 /* Avoid compiler warning because macro is redefined in SDL_syswm.h. */
5 #undef WIN32_LEAN_AND_MEAN
11 DisplayChangeListener dcl
;
12 DisplaySurface
*surface
;
14 SDL_Window
*real_window
;
15 SDL_Renderer
*real_renderer
;
17 int last_vm_running
; /* per console for caption reasons */
26 void sdl2_window_create(struct sdl2_console
*scon
);
27 void sdl2_window_destroy(struct sdl2_console
*scon
);
28 void sdl2_window_resize(struct sdl2_console
*scon
);
29 void sdl2_poll_events(struct sdl2_console
*scon
);
31 void sdl2_reset_keys(struct sdl2_console
*scon
);
32 void sdl2_process_key(struct sdl2_console
*scon
,
33 SDL_KeyboardEvent
*ev
);
35 void sdl2_2d_update(DisplayChangeListener
*dcl
,
36 int x
, int y
, int w
, int h
);
37 void sdl2_2d_switch(DisplayChangeListener
*dcl
,
38 DisplaySurface
*new_surface
);
39 void sdl2_2d_refresh(DisplayChangeListener
*dcl
);
40 void sdl2_2d_redraw(struct sdl2_console
*scon
);
41 bool sdl2_2d_check_format(DisplayChangeListener
*dcl
,
42 pixman_format_code_t format
);
44 void sdl2_gl_update(DisplayChangeListener
*dcl
,
45 int x
, int y
, int w
, int h
);
46 void sdl2_gl_switch(DisplayChangeListener
*dcl
,
47 DisplaySurface
*new_surface
);
48 void sdl2_gl_refresh(DisplayChangeListener
*dcl
);
49 void sdl2_gl_redraw(struct sdl2_console
*scon
);