- memleak fix and menu fix from MatzeB
[supertux.git] / src / button.cpp
index ddc6e4d..793f489 100644 (file)
@@ -57,7 +57,8 @@ Button::Button(std::string icon_file, std::string ninfo, SDLKey nshortcut, int x
       dest.y = 0;
       dest.w = icon->w;
       dest.h = icon->h;
-      SDL_SoftStretch(icon->impl->sdl_surface, NULL, icon->impl->sdl_surface, &dest);
+      SDL_SoftStretch(icon->impl->get_sdl_surface(), NULL,
+          icon->impl->get_sdl_surface(), &dest);
     }
   else
     icon = new Surface(filename,USE_ALPHA);