summaryrefslogtreecommitdiff
path: root/src/blitter
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2007-09-13 14:44:49 +0000
committertruelight <truelight@openttd.org>2007-09-13 14:44:49 +0000
commitd146a78f3939596fcc41fdacc059385032400da6 (patch)
treeccf762280ae82072aa2704963f4342a94e05f728 /src/blitter
parentca161c8e72efc673c23662d62be05a9f5e16da0e (diff)
downloadopenttd-d146a78f3939596fcc41fdacc059385032400da6.tar.xz
(svn r11093) -Fix r11092: also add a DEBUG(driver, 1) if the blitter is loaded, to show which one really loaded
Diffstat (limited to 'src/blitter')
-rw-r--r--src/blitter/factory.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/blitter/factory.hpp b/src/blitter/factory.hpp
index 3e7fc954a..494925613 100644
--- 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 @@ public:
Blitter *newb = b->CreateInstance();
delete *GetActiveBlitter();
*GetActiveBlitter() = newb;
+
+ DEBUG(driver, 1, "Successfully %s blitter '%s'",StrEmpty(name) ? "probed" : "loaded", bname);
return newb;
}
}