Let each screen get width and height in as a parameter on draw() instead of hardcodin...
[ccbs] / bigscreen / splitscreen.h
1 #ifndef _SPLITSCREEN_H
2 #define _SPLITSCREEN_H 1
3
4 #include "screen.h"
5
6 /* A 4x4 split class */
7 class SplitScreen : public GenericScreen {
8 private:
9         unsigned char *subbufs[4];
10         GenericScreen *subscreens[4];
11         bool valid;
12
13         void copy_subscreen(unsigned char *dst, unsigned char *src, unsigned width, unsigned height);
14         
15 public:
16         SplitScreen(GenericScreen *s1, GenericScreen *s2, GenericScreen *s3, GenericScreen *s4);
17         virtual ~SplitScreen();
18
19         bool check_invalidated();
20         void draw(unsigned char *buf, unsigned width, unsigned height);
21 };
22
23 #endif /* !defined(_SPLITSCREEN_H) */