equal
deleted
inserted
replaced
195 case WWT_4: { |
195 case WWT_4: { |
196 DrawFrameRect(r.left, r.top, r.right, r.bottom, wi->color, (clicked) ? FR_LOWERED : 0); |
196 DrawFrameRect(r.left, r.top, r.right, r.bottom, wi->color, (clicked) ? FR_LOWERED : 0); |
197 } |
197 } |
198 /* fall through */ |
198 /* fall through */ |
199 |
199 |
200 case WWT_5: { |
200 case WWT_LABEL: { |
201 StringID str = wi->unkA; |
201 StringID str = wi->unkA; |
202 |
202 |
203 if ((wi->type&WWT_MASK) == WWT_4 && clicked) str++; |
203 if ((wi->type&WWT_MASK) == WWT_4 && clicked) str++; |
204 |
204 |
205 DrawStringCentered(((r.left + r.right + 1) >> 1) + clicked, ((r.top + r.bottom + 1) >> 1) - 5 + clicked, str, 0); |
205 DrawStringCentered(((r.left + r.right + 1) >> 1) + clicked, ((r.top + r.bottom + 1) >> 1) - 5 + clicked, str, 0); |