Solve once and for all issues with scenario title readability...
...on Intro screen when a story map is used
This commit is contained in:
parent
6caadf2e2f
commit
0f95c05c1c
2 changed files with 4 additions and 1 deletions
|
@ -337,7 +337,7 @@ const SDL_Color NORMAL_COLOUR = {0xDD,0xDD,0xDD,0},
|
|||
STONED_COLOUR = {0xA0,0xA0,0xA0,0},
|
||||
TITLE_COLOUR = {0xBC,0xB0,0x88,0},
|
||||
LABEL_COLOUR = {0x6B,0x8C,0xFF,0},
|
||||
BIGMAP_COLOUR = {0x00,0xAA,0x00,0};
|
||||
BIGMAP_COLOUR = {0xFF,0xFF,0xFF,0};
|
||||
const SDL_Color DISABLED_COLOUR = inverse(STONED_COLOUR);
|
||||
|
||||
namespace {
|
||||
|
|
|
@ -176,6 +176,9 @@ bool show_intro_part(display &disp, const config& part,
|
|||
// Draw title if needed
|
||||
if(show_title) {
|
||||
const SDL_Rect area = {0,0,video.getx(),video.gety()};
|
||||
const SDL_Rect txt_shadow_rect = font::line_size(scenario, font::SIZE_XLARGE);
|
||||
draw_solid_tinted_rectangle(dstrect.x + 15,dstrect.y + 15,txt_shadow_rect.w + 10,txt_shadow_rect.h + 10,0,0,0,0.5,video.getSurface());
|
||||
|
||||
font::draw_text(NULL,area,font::SIZE_XLARGE,font::BIGMAP_COLOUR,scenario,0,0);
|
||||
update_rect(font::draw_text(&video,area,font::SIZE_XLARGE,font::BIGMAP_COLOUR,scenario,
|
||||
dstrect.x + 20,dstrect.y + 20));
|
||||
|
|
Loading…
Add table
Reference in a new issue