mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
Proper constructor for FltkLCD
This commit is contained in:
@@ -4,7 +4,8 @@
|
||||
|
||||
#include <FL/Fl_draw.H>
|
||||
|
||||
FltkLCD::FltkLCD(int x, int y, int w, int h) : Fl_Widget(x, y, w, h, NULL) {
|
||||
FltkLCD::FltkLCD(int x, int y, int w, int h, const char * label) :
|
||||
Fl_Widget(x, y, w, h, label) {
|
||||
m_framebuffer = malloc(w*h);
|
||||
// FIXME: Delete the framebuffer!
|
||||
}
|
||||
|
||||
@@ -5,9 +5,10 @@
|
||||
|
||||
class FltkLCD : public Fl_Widget {
|
||||
public:
|
||||
FltkLCD(int x, int y, int w, int h);
|
||||
void draw();
|
||||
FltkLCD(int x, int y, int w, int h, const char * label = 0);
|
||||
void * m_framebuffer;
|
||||
protected:
|
||||
void draw();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user