summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2016-03-07 20:50:18 +0000
committerMatthias Melcher <fltk@matthiasm.com>2016-03-07 20:50:18 +0000
commitb6b99d84e9513405ee381dbf93572914d195fc75 (patch)
treee51561ce6f3014a058c2c1466d0a10ef55e12ad7 /src/drivers
parentb33c9cffd13dadbc1061b122e61e9f70f0153de2 (diff)
Fix PicoSDL.
Fixed some issues with Image_Surface and Copy_Surface for PicoSDL. Still have to virtualize the driver concept. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11307 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/Pico/Fl_Pico_Image_Surface.H0
-rw-r--r--src/drivers/Pico/Fl_Pico_Image_Surface.cxx1
-rw-r--r--src/drivers/PicoSDL/Fl_PicoSDL_Copy_Surface.H14
-rw-r--r--src/drivers/PicoSDL/Fl_PicoSDL_Screen_Driver.cxx4
4 files changed, 17 insertions, 2 deletions
diff --git a/src/drivers/Pico/Fl_Pico_Image_Surface.H b/src/drivers/Pico/Fl_Pico_Image_Surface.H
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/src/drivers/Pico/Fl_Pico_Image_Surface.H
diff --git a/src/drivers/Pico/Fl_Pico_Image_Surface.cxx b/src/drivers/Pico/Fl_Pico_Image_Surface.cxx
new file mode 100644
index 000000000..8b1378917
--- /dev/null
+++ b/src/drivers/Pico/Fl_Pico_Image_Surface.cxx
@@ -0,0 +1 @@
+
diff --git a/src/drivers/PicoSDL/Fl_PicoSDL_Copy_Surface.H b/src/drivers/PicoSDL/Fl_PicoSDL_Copy_Surface.H
index 8b1378917..ea31c3771 100644
--- a/src/drivers/PicoSDL/Fl_PicoSDL_Copy_Surface.H
+++ b/src/drivers/PicoSDL/Fl_PicoSDL_Copy_Surface.H
@@ -1 +1,15 @@
+class Fl_Copy_Surface::Helper : public Fl_Widget_Surface { // class model
+ friend class Fl_Copy_Surface;
+private:
+ int width;
+ int height;
+ Helper(int w, int h) : Fl_Widget_Surface(NULL), width(w), height(h) {} // to implement
+ ~Helper() {} // to implement
+ void set_current(){} // to implement
+ void translate(int x, int y) {} // to implement
+ void untranslate() {} // to implement
+ int w() {return width;}
+ int h() {return height;}
+ int printable_rect(int *w, int *h) {*w = width; *h = height; return 0;}
+};
diff --git a/src/drivers/PicoSDL/Fl_PicoSDL_Screen_Driver.cxx b/src/drivers/PicoSDL/Fl_PicoSDL_Screen_Driver.cxx
index f0bdf91e2..671ee7b6d 100644
--- a/src/drivers/PicoSDL/Fl_PicoSDL_Screen_Driver.cxx
+++ b/src/drivers/PicoSDL/Fl_PicoSDL_Screen_Driver.cxx
@@ -143,8 +143,8 @@ void Fl_Window::resize(int, int, int, int) { }
Fl_Window *Fl_Window::current_;
char fl_show_iconic;
Window fl_window;
-void Fl_Image_Surface::translate(int x, int y) { }
-void Fl_Image_Surface::untranslate() { }
+//void Fl_Image_Surface::translate(int x, int y) { }
+//void Fl_Image_Surface::untranslate() { }
/*
#define __APPLE__