(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)
authorbelugas
Mon, 25 Dec 2006 01:40:33 +0000
changeset 5559 10610f5e6e38
parent 5558 6bb52a5060a8
child 5560 10f971daf73a
(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
--- a/screenshot.c	Sun Dec 24 22:10:09 2006 +0000
+++ b/screenshot.c	Mon Dec 25 01:40:33 2006 +0000
@@ -561,6 +561,7 @@
 	switch (current_screenshot_type) {
 		case SC_VIEWPORT:
 			UndrawMouseCursor();
+			DrawDirtyBlocks();
 			current_screenshot_type = SC_NONE;
 			return MakeSmallScreenshot();
 		case SC_WORLD: