[wineconsole] Move debugprintout (3/3)

Peter Berg Larsen pebl at math.ku.dk
Tue Oct 7 23:00:48 CDT 2003


Changelog:
- Move debugprintout up before calling the backend
-------------- next part --------------
diff -b -u wine-20030911/programs/wineconsole/wineconsole.c wine-my/programs/wineconsole/wineconsole.c
--- wine-20030911/programs/wineconsole/wineconsole.c	2003-06-23 05:37:14.000000000 +0200
+++ wine-my/programs/wineconsole/wineconsole.c	2003-09-03 03:42:42.000000000 +0200
@@ -308,38 +308,38 @@
 	case CONSOLE_RENDERER_CURSOR_POS_EVENT:
 	    if (evts[i].u.cursor_pos.x != data->cursor.X || evts[i].u.cursor_pos.y != data->cursor.Y)
 	    {
+		if (WINE_TRACE_ON(wineconsole))
+                    WINE_TRACE(" curs-pos(%d,%d)",evts[i].u.cursor_pos.x, evts[i].u.cursor_pos.y);
 		data->cursor.X = evts[i].u.cursor_pos.x;
 		data->cursor.Y = evts[i].u.cursor_pos.y;
 		data->fnPosCursor(data);
-		if (WINE_TRACE_ON(wineconsole))
-                    WINE_TRACE(" curs-pos(%d,%d)",evts[i].u.cursor_pos.x, evts[i].u.cursor_pos.y);
 	    }
 	    break;
 	case CONSOLE_RENDERER_CURSOR_GEOM_EVENT:
 	    if (evts[i].u.cursor_geom.size != data->curcfg.cursor_size ||
 		evts[i].u.cursor_geom.visible != data->curcfg.cursor_visible)
 	    {
-		data->fnShapeCursor(data, evts[i].u.cursor_geom.size,
-				    evts[i].u.cursor_geom.visible, FALSE);
 		if (WINE_TRACE_ON(wineconsole))
                     WINE_TRACE(" curs-geom(%d,%d)",
                                  evts[i].u.cursor_geom.size, evts[i].u.cursor_geom.visible);
+		data->fnShapeCursor(data, evts[i].u.cursor_geom.size,
+				    evts[i].u.cursor_geom.visible, FALSE);
 	    }
 	    break;
 	case CONSOLE_RENDERER_DISPLAY_EVENT:
 	    if (evts[i].u.display.left != data->curcfg.win_pos.X)
 	    {
-		data->fnScroll(data, evts[i].u.display.left, TRUE);
-		data->fnPosCursor(data);
 		if (WINE_TRACE_ON(wineconsole))
                     WINE_TRACE(" h-scroll(%d)", evts[i].u.display.left);
+		data->fnScroll(data, evts[i].u.display.left, TRUE);
+		data->fnPosCursor(data);
 	    }
 	    if (evts[i].u.display.top != data->curcfg.win_pos.Y)
 	    {
-		data->fnScroll(data, evts[i].u.display.top, FALSE);
-		data->fnPosCursor(data);
 		if (WINE_TRACE_ON(wineconsole))
                     WINE_TRACE(" v-scroll(%d)", evts[i].u.display.top);
+		data->fnScroll(data, evts[i].u.display.top, FALSE);
+		data->fnPosCursor(data);
 	    }
 	    if (evts[i].u.display.width != data->curcfg.win_width ||
 		evts[i].u.display.height != data->curcfg.win_height)


More information about the wine-patches mailing list