summaryrefslogtreecommitdiff
path: root/src/news_gui.cpp
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-11-10 01:17:15 +0000
committerbelugas <belugas@openttd.org>2007-11-10 01:17:15 +0000
commitf55fdfb7c42b2e2e39b165fd17f7671e14516303 (patch)
tree07b6a8f97a15f768d33fc0b7a3405373f3745b3b /src/news_gui.cpp
parent3a84801f5563ca73c47c56f9682582abe990abb7 (diff)
downloadopenttd-f55fdfb7c42b2e2e39b165fd17f7671e14516303.tar.xz
(svn r11399) -Feature(ette): transparency settings can now be saved and thus remembered.
-Codechange: Wrap all transparency settings in accessors, hiding the implementation -Change: Clicking "transparent building" menu will toggle Houses And Trees only. The other options can be used in the transparency gui. Initial patch by Smatz (FS#1349), with some rework by BigBB and your humble servant.
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 a8d8b0e36..724ec1e78 100644
--- a/src/news_gui.cpp
+++ b/src/news_gui.cpp
@@ -17,6 +17,7 @@
#include "variables.h"
#include "date.h"
#include "string.h"
+#include "transparency.h"
/** @file news_gui.cpp
*
@@ -137,10 +138,10 @@ static void NewsWindowProc(Window *w, WindowEvent *e)
ni->string_id, w->width - 4);
} else {
/* Back up transparency options to draw news view */
- byte to_backup = _transparent_opt;
- _transparent_opt = 0;
+ TransparencyOptionBits to_backup = _transparency_opt;
+ _transparency_opt = 0;
DrawWindowViewport(w);
- _transparent_opt = to_backup;
+ _transparency_opt = to_backup;
/* Shade the viewport into gray, or color*/
vp = w->viewport;