[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [34519] trunk/blender/intern/ghost/intern/ GHOST_SystemWin32.cpp: Silencing some annoying key-event prints in Win32 console:
Joshua Leung
aligorith at gmail.com
Thu Jan 27 00:58:20 CET 2011
Revision: 34519
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=34519
Author: aligorith
Date: 2011-01-26 23:58:20 +0000 (Wed, 26 Jan 2011)
Log Message:
-----------
Silencing some annoying key-event prints in Win32 console:
The console was getting flooded with output like
g
i
i
...
all as a result of what looks like a debugging print. Whoever put this
in, you can get back your debugging prints by enabling BF_GHOST_DEBUG
in your local config :)
Modified Paths:
--------------
trunk/blender/intern/ghost/intern/GHOST_SystemWin32.cpp
Modified: trunk/blender/intern/ghost/intern/GHOST_SystemWin32.cpp
===================================================================
--- trunk/blender/intern/ghost/intern/GHOST_SystemWin32.cpp 2011-01-26 23:33:08 UTC (rev 34518)
+++ trunk/blender/intern/ghost/intern/GHOST_SystemWin32.cpp 2011-01-26 23:58:20 UTC (rev 34519)
@@ -738,7 +738,10 @@
}
event = new GHOST_EventKey(getSystem()->getMilliSeconds(), keyDown ? GHOST_kEventKeyDown: GHOST_kEventKeyUp, window, key, ascii);
+
+#ifdef BF_GHOST_DEBUG
std::cout << ascii << std::endl;
+#endif
}
else {
event = 0;
More information about the Bf-blender-cvs
mailing list