ui: Refactor

This commit is contained in:
Matt Borgerson 2020-04-25 17:40:55 -07:00
parent 6b97fbb3ef
commit b52cec8a28
3 changed files with 623 additions and 639 deletions

File diff suppressed because it is too large Load Diff

View File

@ -38,7 +38,7 @@ void xemu_toggle_fullscreen(void);
// Implemented in xemu_hud.cc
void xemu_hud_init(SDL_Window *window, void *sdl_gl_context);
void xemu_hud_cleanup(void);
void xemu_hud_render(SDL_Window *window);
void xemu_hud_render(void);
void xemu_hud_process_sdl_events(SDL_Event *event);
void xemu_hud_should_capture_kbd_mouse(int *kbd, int *mouse);

View File

@ -1082,7 +1082,7 @@ static void xemu_sdl2_gl_render_surface(struct sdl2_console *scon)
// FIXME: Finer locking
qemu_mutex_lock_iothread();
xemu_hud_render(scon->real_window);
xemu_hud_render();
qemu_mutex_unlock_iothread();
// xb_surface_gl_render_texture(scon->surface);