Skip to content

Commit

Permalink
Update GUI1 title style to match GUI2 (as of a6101bf)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Feb 21, 2016
1 parent b04c158 commit b0344fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/font.hpp
Expand Up @@ -64,6 +64,7 @@ const int
SIZE_15 = 15 * SIZE_NORMAL / 14,
SIZE_PLUS = 16 * SIZE_NORMAL / 14,
SIZE_LARGE = 18 * SIZE_NORMAL / 14,
SIZE_TITLE = 20 * SIZE_NORMAL / 14,
SIZE_XLARGE = 24 * SIZE_NORMAL / 14
;
// For arbitrary scaling:
Expand Down
6 changes: 3 additions & 3 deletions src/show_dialog.cpp
Expand Up @@ -140,7 +140,7 @@ int dialog_frame::top_padding() const {
#endif
}
if(!title_.empty()) {
padding += font::get_max_height(font::SIZE_LARGE) + 2*dialog_frame::title_border_h;
padding += font::get_max_height(font::SIZE_TITLE) + 2*dialog_frame::title_border_h;
}
return padding;
}
Expand Down Expand Up @@ -385,8 +385,8 @@ void dialog_frame::draw_background()
SDL_Rect dialog_frame::draw_title(CVideo* video)
{
SDL_Rect rect = screen_area();
return font::draw_text(video, rect, font::SIZE_LARGE, font::TITLE_COLOR,
title_, dim_.title.x, dim_.title.y, false, TTF_STYLE_BOLD);
return font::draw_text(video, rect, font::SIZE_TITLE, font::TITLE_COLOR,
title_, dim_.title.x, dim_.title.y, false, TTF_STYLE_NORMAL);
}

void dialog_frame::draw()
Expand Down

0 comments on commit b0344fe

Please sign in to comment.