summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2016-03-08 09:15:50 +0000
committerMatthias Melcher <fltk@matthiasm.com>2016-03-08 09:15:50 +0000
commitca54afe5f45bb197a0bceb3ee4a694e71b334f89 (patch)
tree678d1efaaaea6f161b31af488075e887a4376b43
parent00750d4c333a304366a1adbd8780f9f44c9cdafb (diff)
Add missing PicoSDL functions for command line build.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11313 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--FL/porting.H4
-rw-r--r--src/drivers/PicoSDL/Fl_PicoSDL_Screen_Driver.cxx16
2 files changed, 18 insertions, 2 deletions
diff --git a/FL/porting.H b/FL/porting.H
index 776dd8779..01984aa71 100644
--- a/FL/porting.H
+++ b/FL/porting.H
@@ -25,6 +25,8 @@
#endif // !Fl_X_H
+typedef void *Window;
+
#if !(defined(FL_LIBRARY) || defined(FL_INTERNALS)) // this part is used when compiling an application program
# include <FL/Fl_Widget.H>
@@ -43,8 +45,6 @@ typedef void *Fl_Offscreen;
struct XPoint { int x, y; };
struct XRectangle {int x, y, width, height;};
-typedef void *Window;
-
//typedef float CGFloat;
inline Fl_Region XRectangleRegion(int x, int y, int w, int h) {
diff --git a/src/drivers/PicoSDL/Fl_PicoSDL_Screen_Driver.cxx b/src/drivers/PicoSDL/Fl_PicoSDL_Screen_Driver.cxx
index a4a44a748..2c450915e 100644
--- a/src/drivers/PicoSDL/Fl_PicoSDL_Screen_Driver.cxx
+++ b/src/drivers/PicoSDL/Fl_PicoSDL_Screen_Driver.cxx
@@ -156,6 +156,22 @@ Window fl_window;
//void Fl_Image_Surface::translate(int x, int y) { }
//void Fl_Image_Surface::untranslate() { }
+void Fl::add_fd(int, void (*)(int, void*), void*)
+{
+}
+
+void Fl::remove_fd(int)
+{
+}
+
+int Fl_Window::decorated_h()
+{
+}
+
+int Fl_Window::decorated_w()
+{
+}
+
/*
#define __APPLE__
#include <SDL2/SDL.h>