src/Graphics/Display.cc
branchnew_graphics
changeset 412 721c60072091
parent 411 106aaf6eadfe
child 413 7dddc163489a
--- a/src/Graphics/Display.cc	Wed Jan 21 03:33:35 2009 +0200
+++ b/src/Graphics/Display.cc	Wed Jan 21 23:07:22 2009 +0200
@@ -1,5 +1,6 @@
 
 #include "Display.hh"
+#include "../Error.hh"
 
 namespace graphics
 {
@@ -22,7 +23,7 @@
     } else {
         CL_DisplayMode best_mode = getBestMode();
 
-        fullscreen_resolution = PixelCoordinate(best_mode.get_resolution().width, best_mode.get_resolution().height);
+        fullscreen_resolution = PixelDimensions(best_mode.get_resolution().width, best_mode.get_resolution().height);
     }
 }
 
@@ -31,7 +32,7 @@
 }
 
 const CL_DisplayMode Display::getBestMode (void) {
-    const std::vector<CL_DisplayMode> &modes = Graphics::getDisplayModes();
+    const std::vector<CL_DisplayMode> &modes = getDisplayModes();
 
     const CL_DisplayMode *best_mode = NULL;
     
@@ -65,7 +66,7 @@
     // do we have something to draw?
     if (target) {
         // draw it
-        target->draw(this);
+        target->draw(*this);
 
         // flip buffers, sync
         flip(1);
@@ -73,6 +74,9 @@
 }
 
 void Display::on_window_resize (int new_x, int new_y) {
+    (void) new_x;
+    (void) new_y;
+
     // ignore resize in fullscreen mode
     if (is_fullscreen())
         return;