]> git.sesse.net Git - ccbs/blobdiff - bigscreen/screen.h
Let each screen get width and height in as a parameter on draw() instead of hardcodin...
[ccbs] / bigscreen / screen.h
index b35e3af06379e0bd46594ee2d45b86c228eb57df..bf3debaebfb9915e1565efd6559d319bf5cdf39b 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef _SCREEN_H
 #define _SCREEN_H 1
 
+#include "resolution.h"
+
 // arf, Screen conflicts with X11
 class GenericScreen {
 protected:
@@ -9,7 +11,7 @@ protected:
 public:
        virtual ~GenericScreen();
        virtual bool check_invalidated() = 0;
-       virtual void draw(unsigned char *buf) = 0;
+       virtual void draw(unsigned char *buf, unsigned width, unsigned height) = 0;
        virtual int get_priority();
 };