From a1fd01dbc602a006370e6fe73c7ba3e684ecee6a Mon Sep 17 00:00:00 2001 From: Themaister Date: Thu, 20 Dec 2012 15:53:09 +0100 Subject: [PATCH] Add some TODOs for overlay. --- Makefile.win | 1 + driver.c | 3 +++ retroarch.c | 2 ++ 3 files changed, 6 insertions(+) diff --git a/Makefile.win b/Makefile.win index bf2fbb4001..af7d43eebd 100644 --- a/Makefile.win +++ b/Makefile.win @@ -20,6 +20,7 @@ OBJ = retroarch.o \ audio/utils.o \ audio/null.o \ input/null.o \ + input/overlay.o \ fifo_buffer.o \ gfx/null.o \ media/rarch.o \ diff --git a/driver.c b/driver.c index 7d0df5bed0..d01ca085d4 100644 --- a/driver.c +++ b/driver.c @@ -719,6 +719,9 @@ void init_video_input(void) } } + // TODO: This should probably be done somewhere else. + if (driver.overlay) + input_overlay_free(driver.overlay); driver.overlay = input_overlay_new(NULL); } diff --git a/retroarch.c b/retroarch.c index 57a43011e3..f18f48dc3d 100644 --- a/retroarch.c +++ b/retroarch.c @@ -469,6 +469,7 @@ size_t audio_sample_batch(const int16_t *data, size_t frames) return frames; } +// TODO: This might need to be #ifdeffed out for irrelevant platforms. static inline void input_poll_overlay(void) { bool pressed = input_input_state_func(NULL, 0, @@ -490,6 +491,7 @@ static void input_poll(void) { input_poll_func(); + // TODO: This might need to be #ifdeffed out for irrelevant platforms. if (driver.overlay) // Poll overlay state input_poll_overlay(); }