equal
deleted
inserted
replaced
453 |
453 |
454 if (w->caption_color != 0xFF) { |
454 if (w->caption_color != 0xFF) { |
455 GfxFillRect(r.left+2, r.top+2, r.right-2, r.bottom-2, _colour_gradient[_player_colors[w->caption_color]][4]); |
455 GfxFillRect(r.left+2, r.top+2, r.right-2, r.bottom-2, _colour_gradient[_player_colors[w->caption_color]][4]); |
456 } |
456 } |
457 |
457 |
458 DrawStringCentered( (r.left+r.right+1)>>1, r.top+2, wi->data, 0x84); |
458 DrawStringCenteredTruncated(r.left + 2, r.right - 2, r.top+2, wi->data, 0x84); |
459 draw_default:; |
459 draw_default:; |
460 if (IsWidgetDisabled(wi)) { |
460 if (IsWidgetDisabled(wi)) { |
461 GfxFillRect(r.left+1, r.top+1, r.right-1, r.bottom-1, _colour_gradient[wi->color&0xF][2] | PALETTE_MODIFIER_GREYOUT); |
461 GfxFillRect(r.left+1, r.top+1, r.right-1, r.bottom-1, _colour_gradient[wi->color&0xF][2] | PALETTE_MODIFIER_GREYOUT); |
462 } |
462 } |
463 } |
463 } |