diff options
author | Raphael Langella <raphael.langella@gmail.com> | 2013-10-30 17:49:56 +0100 |
---|---|---|
committer | Raphael Langella <raphael.langella@gmail.com> | 2013-10-30 17:55:39 +0100 |
commit | d938c595830be2dcaae8d99621945988006b2f69 (patch) | |
tree | 89274e0c96652718a389ff2f76332dba9252659d /crawl-ref/source | |
parent | 5bf649e60a6adcb6c6245b3d218fb843b9e3eccf (diff) | |
download | crawl-ref-d938c595830be2dcaae8d99621945988006b2f69.tar.gz crawl-ref-d938c595830be2dcaae8d99621945988006b2f69.zip |
Increase the size of the description box in species/job selection menu.
Most languages are not as concise as english, it's quite hard to fit
translations on 2 lines. Besides, there's plenty of room on the screen.
Diffstat (limited to 'crawl-ref/source')
-rw-r--r-- | crawl-ref/source/menu.cc | 3 | ||||
-rw-r--r-- | crawl-ref/source/newgame.cc | 10 |
2 files changed, 9 insertions, 4 deletions
diff --git a/crawl-ref/source/menu.cc b/crawl-ref/source/menu.cc index 69486881a9..b75865876b 100644 --- a/crawl-ref/source/menu.cc +++ b/crawl-ref/source/menu.cc @@ -2826,7 +2826,8 @@ void TextItem::render() cgotoxy(m_min_coord.x, m_min_coord.y + i); textcolor(m_fg_colour); textbackground(m_bg_colour); - cprintf("%s", m_render_text.substr(newline_pos, endline_pos).c_str()); + cprintf("%s", m_render_text.substr(newline_pos, + endline_pos - newline_pos).c_str()); if (endline_pos != string::npos) newline_pos = endline_pos + 1; else diff --git a/crawl-ref/source/newgame.cc b/crawl-ref/source/newgame.cc index b2b676b05f..42adc8d5a4 100644 --- a/crawl-ref/source/newgame.cc +++ b/crawl-ref/source/newgame.cc @@ -541,8 +541,11 @@ static void _mark_fully_random(newgame_def* ng, newgame_def* ng_choice, */ static const int COLUMN_WIDTH = 25; static const int X_MARGIN = 4; -static const int CHAR_DESC_START_Y = 17; -static const int SPECIAL_KEYS_START_Y = CHAR_DESC_START_Y + 3; +static const int CHAR_DESC_START_Y = 16; +static const int CHAR_DESC_HEIGHT = 3; +static const int SPECIAL_KEYS_START_Y = CHAR_DESC_START_Y + + CHAR_DESC_HEIGHT + 1; + static void _construct_species_menu(const newgame_def* ng, const newgame_def& defaults, MenuFreeform* menu) @@ -788,7 +791,8 @@ static void _prompt_species(newgame_def* ng, newgame_def* ng_choice, _construct_species_menu(ng, defaults, freeform); MenuDescriptor* descriptor = new MenuDescriptor(&menu); descriptor->init(coord_def(X_MARGIN, CHAR_DESC_START_Y), - coord_def(get_number_of_cols(), CHAR_DESC_START_Y + 2), + coord_def(get_number_of_cols(), CHAR_DESC_START_Y + + CHAR_DESC_HEIGHT), "descriptor"); menu.attach_object(descriptor); |