summaryrefslogtreecommitdiff
path: root/src/news_gui.cpp
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2007-04-05 07:49:04 +0000
committerpeter1138 <peter1138@openttd.org>2007-04-05 07:49:04 +0000
commita2cec54c9d880243617b16972528e305d743014d (patch)
tree56e95f5fe598d9097484013307aecd3c2c9821d0 /src/news_gui.cpp
parentabf88b687ccbc7e344b3eacf8a84c1f71cac73a3 (diff)
downloadopenttd-a2cec54c9d880243617b16972528e305d743014d.tar.xz
(svn r9563) -Feature: Add more finer control to transparency options, including a new toolbar, accessible from the map menu or Ctrl X. Patch by Wolf01.
Diffstat (limited to 'src/news_gui.cpp')
-rw-r--r--src/news_gui.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/news_gui.cpp b/src/news_gui.cpp
index 32d7cdc57..a94461180 100644
--- a/src/news_gui.cpp
+++ b/src/news_gui.cpp
@@ -128,10 +128,11 @@ static void NewsWindowProc(Window *w, WindowEvent *e)
DrawStringMultiCenter(215, ni->display_mode == NM_NORMAL ? 76 : 56,
ni->string_id, w->width - 4);
} else {
- byte bk = _display_opt;
- _display_opt &= ~DO_TRANS_BUILDINGS;
+ /* Back up transparency options to draw news view */
+ byte to_backup = _transparent_opt;
+ _transparent_opt = 0;
DrawWindowViewport(w);
- _display_opt = bk;
+ _transparent_opt = to_backup;
/* Shade the viewport into gray, or color*/
vp = w->viewport;