diff --git a/src/font.hpp b/src/font.hpp index e1ac343e216c..65711b77347d 100644 --- a/src/font.hpp +++ b/src/font.hpp @@ -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: diff --git a/src/show_dialog.cpp b/src/show_dialog.cpp index d30daa76f89f..9febe70d95a1 100644 --- a/src/show_dialog.cpp +++ b/src/show_dialog.cpp @@ -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()