Update CMake to 3.2.1 in .travis.yml
[supertux.git] / src / supertux / info_box.hpp
index 190617a..ddc9230 100644 (file)
 #define HEADER_SUPERTUX_SUPERTUX_INFO_BOX_HPP
 
 #include <map>
+#include <memory>
 #include <string>
 #include <vector>
 
+#include "video/surface_ptr.hpp"
+
 class DrawingContext;
 class InfoBoxLine;
-class Surface;
 
 /** This class is displaying a box with information text inside the game */
 class InfoBox
@@ -42,8 +44,8 @@ private:
   size_t firstline;
   std::vector<InfoBoxLine*> lines;
   std::map<std::string, Surface*> images;
-  Surface* arrow_scrollup;
-  Surface* arrow_scrolldown;
+  SurfacePtr arrow_scrollup;
+  SurfacePtr arrow_scrolldown;
 
 private:
   InfoBox(const InfoBox&);