widget.c
changeset 682 74c70f645d95
parent 674 9604d4d8de7d
child 842 efc3546bc313
equal deleted inserted replaced
681:6aefab406b0d 682:74c70f645d95
   346 			GfxFillRect(r.left, r.bottom, r.right, r.bottom, c2);
   346 			GfxFillRect(r.left, r.bottom, r.right, r.bottom, c2);
   347 
   347 
   348 			goto restore_dparam;
   348 			goto restore_dparam;
   349 		}
   349 		}
   350 
   350 
       
   351 		case WWT_STICKYBOX: {
       
   352 			DrawFrameRect(r.left, r.top, r.right, r.bottom, wi->color, (cur_click & 1) ? 0x20 : 0);
       
   353 			DrawSprite((cur_click & 1) ? SPR_PIN_UP :SPR_PIN_DOWN, r.left + 2, r.top + 3);
       
   354 			break;
       
   355 		}
       
   356 		
   351 		case WWT_CAPTION: {
   357 		case WWT_CAPTION: {
   352 			DrawFrameRect(r.left, r.top, r.right, r.bottom, wi->color, 0x10);
   358 			DrawFrameRect(r.left, r.top, r.right, r.bottom, wi->color, 0x10);
   353 			DrawFrameRect(r.left+1, r.top+1, r.right-1, r.bottom-1, wi->color, (w->caption_color == 0xFF) ? 0x60 : 0x70);
   359 			DrawFrameRect(r.left+1, r.top+1, r.right-1, r.bottom-1, wi->color, (w->caption_color == 0xFF) ? 0x60 : 0x70);
   354 
   360 
   355 			if (w->caption_color != 0xFF) {
   361 			if (w->caption_color != 0xFF) {