Skip to content

Commit

Permalink
Fix storyscreen buttons disappearing when drawing title (bug #24528)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Mar 18, 2016
1 parent f02a038 commit d47336e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/storyscreen/render.cpp
Expand Up @@ -499,6 +499,12 @@ void part_ui::render_title_box()
break; // already set before
}

update_locker locker(video_);

next_button_.hide();
back_button_.hide();
play_button_.hide();

sdl::draw_solid_tinted_rectangle(
base_rect_.x + titlebox_x - titleshadow_padding,
base_rect_.y + titlebox_y - titleshadow_padding,
Expand All @@ -517,6 +523,11 @@ void part_ui::render_title_box()
static_cast<size_t>(std::max(0, titlebox_w)),
static_cast<size_t>(std::max(0, titlebox_h))
);

next_button_.hide(false);
back_button_.hide(false);
play_button_.hide(false);

#endif
}

Expand Down

0 comments on commit d47336e

Please sign in to comment.