Fixed Rect a bit and started to use Rect in Surface class
[supertux.git] / src / supertux / tile.cpp
index 3a17375..9369355 100644 (file)
@@ -68,10 +68,10 @@ Tile::load_images()
       else 
       {
         surface = new Surface(spec.file,
-                              (int) spec.rect.p1.x,
-                              (int) spec.rect.p1.y,
-                              (int) spec.rect.get_width(),
-                              (int) spec.rect.get_height());
+                              Rect((int) spec.rect.p1.x,
+                                   (int) spec.rect.p1.y,
+                                   Size((int) spec.rect.get_width(),
+                                        (int) spec.rect.get_height())));
       }
       images.push_back(surface);
     }