(svn r22429) -Add: some constants for specific palette colours used in the GUI.

This commit is contained in:
frosch
2011-05-06 21:13:29 +00:00
parent 4b0a2fbe29
commit 5e449b8fae
21 changed files with 79 additions and 63 deletions

View File

@@ -335,12 +335,12 @@ struct NewsWindow : Window {
void DrawNewsBorder(const Rect &r) const
{
GfxFillRect(r.left, r.top, r.right, r.bottom, GREY_SCALE(15));
GfxFillRect(r.left, r.top, r.right, r.bottom, PC_WHITE);
GfxFillRect(r.left, r.top, r.left, r.bottom, GREY_SCALE(1));
GfxFillRect(r.right, r.top, r.right, r.bottom, GREY_SCALE(1));
GfxFillRect(r.left, r.top, r.right, r.top, GREY_SCALE(1));
GfxFillRect(r.left, r.bottom, r.right, r.bottom, GREY_SCALE(1));
GfxFillRect(r.left, r.top, r.left, r.bottom, PC_BLACK);
GfxFillRect(r.right, r.top, r.right, r.bottom, PC_BLACK);
GfxFillRect(r.left, r.top, r.right, r.top, PC_BLACK);
GfxFillRect(r.left, r.bottom, r.right, r.bottom, PC_BLACK);
}
virtual Point OnInitialPosition(const WindowDesc *desc, int16 sm_width, int16 sm_height, int window_number)
@@ -425,7 +425,7 @@ struct NewsWindow : Window {
break;
case NTW_VEH_BKGND:
GfxFillRect(r.left, r.top, r.right, r.bottom, GREY_SCALE(10));
GfxFillRect(r.left, r.top, r.right, r.bottom, PC_GREY);
break;
case NTW_VEH_NAME: