widget.c
changeset 2757 854d1b1d61b2
parent 2703 edd58a233988
child 2801 c70673b84010
--- a/widget.c	Wed Dec 14 06:51:19 2005 +0000
+++ b/widget.c	Wed Dec 14 08:05:36 2005 +0000
@@ -191,7 +191,7 @@
 			goto draw_default;
 		}
 
-		case WWT_CLOSEBOX: /* WWT_TEXTBTN */
+		case WWT_TEXTBTN: /* WWT_TEXTBTN */
 		case WWT_4: {
 			DrawFrameRect(r.left, r.top, r.right, r.bottom, wi->color, (clicked) ? FR_LOWERED : 0);
 			}
@@ -410,6 +410,14 @@
 			break;
 		}
 
+		case WWT_CLOSEBOX: {
+			assert(r.right - r.left == 10); // ensure the same sizes are used everywhere
+
+			DrawFrameRect(r.left, r.top, r.right, r.bottom, wi->color, 0);
+			DrawString(r.left + 2, r.top + 2, STR_00C5, 0);
+			break;
+		}
+
 		case WWT_CAPTION: {
 			assert(r.bottom - r.top == 13); // XXX - to ensure the same sizes are used everywhere!
 			DrawFrameRect(r.left, r.top, r.right, r.bottom, wi->color, FR_BORDERONLY);