diff --git a/display/simgraph16.cc b/display/simgraph16.cc index 1fc21dbb9..e55b77065 100644 --- a/display/simgraph16.cc +++ b/display/simgraph16.cc @@ -4436,7 +4436,7 @@ int display_text_proportional_len_clip_rgb(KOORD_VAL x, KOORD_VAL y, const char* // get the data from the font int glyph_width = fnt->get_glyph_width(c); - const uint8 glyph_yoffset = std::min(fnt->get_glyph_yoffset(c), (uint8)y_offset); + const uint8 glyph_yoffset = std::max(fnt->get_glyph_yoffset(c), (uint8)y_offset); // currently max character width 16 bit supported by font.h/font.cc for( int i=0; i<2; i++ ) { diff --git a/gui/banner.cc b/gui/banner.cc index 25b8c1879..05f0be68e 100644 --- a/gui/banner.cc +++ b/gui/banner.cc @@ -207,9 +207,9 @@ void banner_text_t::draw(scr_coord offset) PUSH_CLIP_FIT( left, cursor.y, width, height ); - display_fillbox_wh_clip_rgb(left, cursor.y, width, height, color_idx_to_rgb(COL_GREY1), true); - display_fillbox_wh_clip_rgb(left, cursor.y - 1, width, 1, color_idx_to_rgb(COL_GREY3), false); - display_fillbox_wh_clip_rgb(left, cursor.y + height, width, 1, color_idx_to_rgb(COL_GREY6), false); + display_fillbox_wh_clip_rgb(left, cursor.y, width, height, color_idx_to_rgb(COL_GREY1), true); + display_fillbox_wh_clip_rgb(left, cursor.y - 1, width, 1, color_idx_to_rgb(COL_GREY3), false); + display_fillbox_wh_clip_rgb(left, cursor.y + height, width, 1, color_idx_to_rgb(COL_GREY6), false); cursor.y++;