diff options
author | rubidium <rubidium@openttd.org> | 2008-05-06 22:08:18 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-06 22:08:18 +0000 |
commit | 9db77e3808139fe3364345aa7bf09a5e41198e4c (patch) | |
tree | 6760a7b433eda594e11470ba7695e8c399fadbfd /src/transparency_gui.cpp | |
parent | 8796331d83e09dda2ac4642f9215845cc2dd321c (diff) | |
download | openttd-9db77e3808139fe3364345aa7bf09a5e41198e4c.tar.xz |
(svn r12976) -Codechange: use w->SetDirty() instead of SetWindowDirty(w) when it's certain that w != NULL.
Diffstat (limited to 'src/transparency_gui.cpp')
-rw-r--r-- | src/transparency_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transparency_gui.cpp b/src/transparency_gui.cpp index b0e9da16f..eee61bd16 100644 --- a/src/transparency_gui.cpp +++ b/src/transparency_gui.cpp @@ -66,7 +66,7 @@ static void TransparencyToolbWndProc(Window *w, WindowEvent *e) if (_ctrl_pressed) { /* toggle the bit of the transparencies lock variable */ ToggleTransparencyLock((TransparencyOption)(e->we.click.widget - TTW_WIDGET_SIGNS)); - SetWindowDirty(w); + w->SetDirty(); } else { /* toggle the bit of the transparencies variable and play a sound */ ToggleTransparency((TransparencyOption)(e->we.click.widget - TTW_WIDGET_SIGNS)); |