From 0be1149353fbbde7e19ca302ba4fc269e1bec7da Mon Sep 17 00:00:00 2001 From: belugas Date: Mon, 25 Dec 2006 01:40:33 +0000 Subject: (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) --- screenshot.c | 1 + 1 file changed, 1 insertion(+) 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: -- cgit v1.2.3-70-g09d2