widget.c
changeset 4345 1da147230c79
parent 3762 91f23249d987
child 4437 49e79e135539
equal deleted inserted replaced
4344:7e123fec5b0b 4345:1da147230c79
   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);