summaryrefslogtreecommitdiff
path: root/render.h
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2018-12-18 19:58:00 -0800
committerMichael Pavone <pavone@retrodev.com>2018-12-18 19:58:00 -0800
commit6cb4560e3d8d22203dbc9f0c651a482188ce3b25 (patch)
tree918b220f8f50357159252df92e61a152af8488f2 /render.h
parent834ee46f6588437936d9cbda4a0e70074c1ebaf8 (diff)
Allow closing VDP debug windows with the close button in the window title bar
Diffstat (limited to 'render.h')
-rw-r--r--render.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/render.h b/render.h
index fd05811..a5f585e 100644
--- a/render.h
+++ b/render.h
@@ -86,10 +86,11 @@ typedef enum {
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);