summaryrefslogtreecommitdiff
path: root/src/widget.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-04-29 20:47:36 +0000
committerfrosch <frosch@openttd.org>2011-04-29 20:47:36 +0000
commit1ffd720f81d917126e1f15ef2b8edac21484adcf (patch)
tree17768d42ca1045b8f265214f147cdde304fdeaa9 /src/widget.cpp
parent461b75725cb475b34142ac1e73ba9b6f40568445 (diff)
downloadopenttd-1ffd720f81d917126e1f15ef2b8edac21484adcf.tar.xz
(svn r22383) -Codechange: Rename PALETTE_TO_STRUCT_GREY to PALETTE_NEWSPAPER as it does not belong to the other PALETTE_TO_STRUCT_xxx recolourings.
Diffstat (limited to 'src/widget.cpp')
-rw-r--r--src/widget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widget.cpp b/src/widget.cpp
index 210ca6c8c..9d928f9df 100644
--- a/src/widget.cpp
+++ b/src/widget.cpp
@@ -1797,7 +1797,7 @@ void NWidgetViewport::Draw(const Window *w)
/* Optionally shade the viewport. */
if (this->disp_flags & (ND_SHADE_GREY | ND_SHADE_DIMMED)) {
GfxFillRect(this->pos_x, this->pos_y, this->pos_x + this->current_x - 1, this->pos_y + this->current_y - 1,
- (this->disp_flags & ND_SHADE_DIMMED) ? PALETTE_TO_TRANSPARENT : PALETTE_TO_STRUCT_GREY, FILLRECT_RECOLOUR);
+ (this->disp_flags & ND_SHADE_DIMMED) ? PALETTE_TO_TRANSPARENT : PALETTE_NEWSPAPER, FILLRECT_RECOLOUR);
}
}