Mercurial > repos > blastem
diff render.h @ 1649:b500e971da75
Allow closing VDP debug windows with the close button in the window title bar
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 18 Dec 2018 19:58:00 -0800 |
parents | c6b2c0f8cc61 |
children | 395f684c5379 |
line wrap: on
line diff
--- a/render.h Sat Dec 15 13:06:47 2018 -0800 +++ b/render.h Tue Dec 18 19:58:00 2018 -0800 @@ -86,10 +86,11 @@ typedef struct audio_source audio_source; typedef void (*drop_handler)(const char *filename); +typedef void (*window_close_handler)(uint8_t which); uint32_t render_map_color(uint8_t r, uint8_t g, uint8_t b); void render_save_screenshot(char *path); -uint8_t render_create_window(char *caption, uint32_t width, uint32_t height); +uint8_t render_create_window(char *caption, uint32_t width, uint32_t height, window_close_handler close_handler); void render_destroy_window(uint8_t which); uint32_t *render_get_framebuffer(uint8_t which, int *pitch); void render_framebuffer_updated(uint8_t which, int width);