(svn r11093) -Fix r11092: also add a DEBUG(driver, 1) if the blitter is loaded, to show which one really loaded
authortruelight
Thu, 13 Sep 2007 14:44:49 +0000
changeset 8064 d850cf8f90de
parent 8063 0e907a0b5add
child 8065 1ec515080c33
(svn r11093) -Fix r11092: also add a DEBUG(driver, 1) if the blitter is loaded, to show which one really loaded
src/blitter/factory.hpp
--- a/src/blitter/factory.hpp	Thu Sep 13 12:28:53 2007 +0000
+++ b/src/blitter/factory.hpp	Thu Sep 13 14:44:49 2007 +0000
@@ -5,6 +5,7 @@
 
 #include "base.hpp"
 #include "../string.h"
+#include "../debug.h"
 #include <string>
 #include <map>
 
@@ -74,6 +75,8 @@
 				Blitter *newb = b->CreateInstance();
 				delete *GetActiveBlitter();
 				*GetActiveBlitter() = newb;
+
+				DEBUG(driver, 1, "Successfully %s blitter '%s'",StrEmpty(name) ? "probed" : "loaded", bname);
 				return newb;
 			}
 		}