Update GUI1 title style to match GUI2 (as of a6101bf80d
)
This commit is contained in:
parent
b04c158e89
commit
b0344fed20
2 changed files with 4 additions and 3 deletions
|
@ -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:
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue