changeset 7568:7d2464201204 draft

(svn r11093) -Fix r11092: also add a DEBUG(driver, 1) if the blitter is loaded, to show which one really loaded
author truelight <truelight@openttd.org>
date Thu, 13 Sep 2007 14:44:49 +0000
parents 5e3238300b22
children 326049261489
files src/blitter/factory.hpp
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/blitter/factory.hpp
+++ b/src/blitter/factory.hpp
@@ -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;
 			}
 		}