equal
deleted
inserted
replaced
231 |
231 |
232 DrawStringCentered(((r.left + r.right + 1) >> 1) + clicked, ((r.top + r.bottom + 1) >> 1) - 5 + clicked, str, 0); |
232 DrawStringCentered(((r.left + r.right + 1) >> 1) + clicked, ((r.top + r.bottom + 1) >> 1) - 5 + clicked, str, 0); |
233 goto draw_default; |
233 goto draw_default; |
234 } |
234 } |
235 |
235 |
|
236 case WWT_TEXT: { |
|
237 StringID str = wi->data; |
|
238 |
|
239 if (str != STR_NULL) DrawStringTruncated(r.left, r.top, str, wi->color, r.right - r.left); |
|
240 break; |
|
241 } |
|
242 |
236 case WWT_INSET: { |
243 case WWT_INSET: { |
237 StringID str = wi->data; |
244 StringID str = wi->data; |
238 DrawFrameRect(r.left, r.top, r.right, r.bottom, wi->color, FR_LOWERED | FR_DARKENED); |
245 DrawFrameRect(r.left, r.top, r.right, r.bottom, wi->color, FR_LOWERED | FR_DARKENED); |
239 |
246 |
240 if (str != STR_NULL) DrawStringTruncated(r.left + 2, r.top + 1, str, 0, r.right - r.left - 10); |
247 if (str != STR_NULL) DrawStringTruncated(r.left + 2, r.top + 1, str, 0, r.right - r.left - 10); |