app: add always_on_top

It is very convenient when I play mobile game and watch video at the
same time.

Tested on Linux mint Cinnamon as well as Windows 10.

Signed-off-by: Yu-Chen Lin <npes87184@gmail.com>
This commit is contained in:
Yu-Chen Lin
2019-01-27 19:04:22 +08:00
parent b35733edb6
commit eca82e09c3
6 changed files with 44 additions and 15 deletions

View File

@@ -43,7 +43,8 @@ void screen_init(struct screen *screen);
// initialize screen, create window, renderer and texture (window is hidden)
SDL_bool screen_init_rendering(struct screen *screen,
const char *device_name,
struct size frame_size);
struct size frame_size,
SDL_bool always_on_top);
// show the window
void screen_show_window(struct screen *screen);