--- a/src/Graphics/Display.hh Wed Jan 21 23:07:22 2009 +0200
+++ b/src/Graphics/Display.hh Wed Jan 21 23:25:29 2009 +0200
@@ -22,7 +22,7 @@
}
-#include "Drawable.hh"
+#include "View.hh"
#include "../Timer.hh"
#include <ClanLib/display.h>
@@ -53,7 +53,7 @@
/**
* What we draw
*/
- Drawable *target;
+ View *current_view;
CL_SlotContainer slots;
@@ -85,11 +85,9 @@
}
/**
- * Set draw target
+ * Display the given view, this will initialize resize it to the right size
*/
- void setTarget (Drawable *target) {
- this->target = target;
- }
+ void setView (View *view);
/**
* Shift back and forth between fullscreen and windowed mode, retaining resolutions