|
|
@ -191,7 +191,7 @@ void DrawWindowWidgets(const Window *w)
|
|
|
|
goto draw_default;
|
|
|
|
goto draw_default;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
case WWT_CLOSEBOX: /* WWT_TEXTBTN */
|
|
|
|
case WWT_TEXTBTN: /* WWT_TEXTBTN */
|
|
|
|
case WWT_4: {
|
|
|
|
case WWT_4: {
|
|
|
|
DrawFrameRect(r.left, r.top, r.right, r.bottom, wi->color, (clicked) ? FR_LOWERED : 0);
|
|
|
|
DrawFrameRect(r.left, r.top, r.right, r.bottom, wi->color, (clicked) ? FR_LOWERED : 0);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -410,6 +410,14 @@ void DrawWindowWidgets(const Window *w)
|
|
|
|
break;
|
|
|
|
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: {
|
|
|
|
case WWT_CAPTION: {
|
|
|
|
assert(r.bottom - r.top == 13); // XXX - to ensure the same sizes are used everywhere!
|
|
|
|
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);
|
|
|
|
DrawFrameRect(r.left, r.top, r.right, r.bottom, wi->color, FR_BORDERONLY);
|
|
|
|