summaryrefslogtreecommitdiff
path: root/screenshot.c
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2006-12-25 01:40:33 +0000
committerbelugas <belugas@openttd.org>2006-12-25 01:40:33 +0000
commit8e20ae2e9574ed613fd95a07fad12ce0e7f2bfa5 (patch)
tree68a32a8550bbb3f600d73595a7bf6617e14dd0af /screenshot.c
parent67f63c858468c897b0d572457ff64cbfb5588f05 (diff)
downloadopenttd-8e20ae2e9574ed613fd95a07fad12ce0e7f2bfa5.tar.xz
(svn r7556) -Fix(r7153): By handling the KeyEvent sooner in the events loops, the console command "screenshot no_con" did not had time to actually repaint the screen without the console before the screenshot. Forcing a redraw before it ensure that the feature acts as required. (to be ported to 0.5.0)
(thanks glx)
Diffstat (limited to 'screenshot.c')
-rw-r--r--screenshot.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/screenshot.c b/screenshot.c
index ac5109ced..503c78a5c 100644
--- a/screenshot.c
+++ b/screenshot.c
@@ -561,6 +561,7 @@ bool MakeScreenshot(void)
switch (current_screenshot_type) {
case SC_VIEWPORT:
UndrawMouseCursor();
+ DrawDirtyBlocks();
current_screenshot_type = SC_NONE;
return MakeSmallScreenshot();
case SC_WORLD: