Devanagari upgrade
[supertux.git] / src / gui / mousecursor.hpp
index 897a7ee..30afd56 100644 (file)
@@ -19,7 +19,7 @@
 
 #include <string>
 
-class Surface;
+#include "video/surface_ptr.hpp"
 
 #define MC_STATES_NB 3
 
@@ -63,13 +63,15 @@ public:
   /// Set current cursor.
   static void set_current(MouseCursor* pcursor)
   {        current_ = pcursor;      };
+  
+  friend class Resources;
 
 private:
   int mid_x;
   int mid_y;
   int state_before_click;
   int cur_state;
-  Surface* cursor;
+  SurfacePtr cursor;
 
 private:
   static MouseCursor* current_;