Fix for coverity #29394
[supertux.git] / src / object / floating_text.cpp
index 217da5c..c9f83b3 100644 (file)
@@ -22,7 +22,7 @@
 #include "video/drawing_context.hpp"
 
 FloatingText::FloatingText(const Vector& pos, const std::string& text_) :
-  position(pos), 
+  position(pos),
   text(text_),
   timer()
 {
@@ -69,7 +69,7 @@ FloatingText::draw(DrawingContext& context)
   context.push_transform();
   context.set_alpha(alpha);
 
-  context.draw_text(normal_font, text, position, ALIGN_LEFT, LAYER_OBJECTS+1, FloatingText::text_color);
+  context.draw_text(Resources::normal_font, text, position, ALIGN_LEFT, LAYER_OBJECTS+1, FloatingText::text_color);
 
   context.pop_transform();
 }