From 977a03db1e4131353d4fed49a346b6d4f26f4ec2 Mon Sep 17 00:00:00 2001 From: Sebastian Krzyszkowiak Date: Mon, 25 Sep 2017 00:55:49 +0200 Subject: [PATCH] future-proof Android support by using ALLEGRO_FRAMELESS when fullscreen --- src/libsuperderpy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsuperderpy.c b/src/libsuperderpy.c index 7dbc541..1ae5757 100644 --- a/src/libsuperderpy.c +++ b/src/libsuperderpy.c @@ -143,7 +143,7 @@ SYMBOL_EXPORT struct Game* libsuperderpy_init(int argc, char** argv, const char* al_install_joystick(); - al_set_new_display_flags(ALLEGRO_PROGRAMMABLE_PIPELINE | (game->config.fullscreen ? ALLEGRO_FULLSCREEN_WINDOW : ALLEGRO_WINDOWED) | ALLEGRO_RESIZABLE | ALLEGRO_OPENGL); + al_set_new_display_flags((game->config.fullscreen ? (ALLEGRO_FULLSCREEN_WINDOW | ALLEGRO_FRAMELESS) : ALLEGRO_WINDOWED) | ALLEGRO_RESIZABLE | ALLEGRO_OPENGL | ALLEGRO_PROGRAMMABLE_PIPELINE); #ifdef __EMSCRIPTEN__ al_set_new_display_flags((al_get_new_display_flags() | ALLEGRO_WINDOWED) ^ ALLEGRO_FULLSCREEN_WINDOW); #endif