Remove viewport flag

This commit is contained in:
Maikel Stuivenberg committed 2015-06-28 13:36:46 +02:00
1 parent 4f7fbaaeb7
commit 9feff63c6d
2 files changed
+5 -5

No files matched your search

+4 -4
View File
@@ -230,13 +230,13 @@ static void shortcut_remove_vertical_land_toggle()
static void shortcut_remove_top_bottom_toolbar_toggle()
{
toggle_view_flag(VIEWPORT_FLAG_HIDE_TOP_BOTTOM_TOOLBAR);
if (window_get_main()->viewport->flags & VIEWPORT_FLAG_HIDE_TOP_BOTTOM_TOOLBAR){
if (window_find_by_class(WC_TOP_TOOLBAR) != NULL)
{
window_close(window_find_by_class(WC_TOP_TOOLBAR));
window_close(window_find_by_class(WC_BOTTOM_TOOLBAR));
}
else {
else
{
window_top_toolbar_open();
window_game_bottom_toolbar_open();
}
+1 -1
View File
@@ -41,7 +41,7 @@ enum {
VIEWPORT_FLAG_HIDE_BASE = (1 << 12),
VIEWPORT_FLAG_HIDE_VERTICAL = (1 << 13),
VIEWPORT_FLAG_INVISIBLE_SPRITES = (1 << 14),
VIEWPORT_FLAG_HIDE_TOP_BOTTOM_TOOLBAR = (1 << 15),
VIEWPORT_FLAG_15 = (1 << 15)
};
enum {