diff options
Diffstat (limited to 'library.cpp')
-rw-r--r-- | library.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/library.cpp b/library.cpp index 5cfb68f..f59d542 100644 --- a/library.cpp +++ b/library.cpp @@ -1,8 +1,15 @@ #include <iostream> #include "library.h" +#include "main.h" using namespace std; +extern Fl_Window_draw *window; + void draw_text(int x,int y,const char *s){ - cerr<<"draw_text: x="<<x<<" y="<<y<<" s="<<s<<endl; + fl_draw(s,x,y); +} + +void log(const char *s){ + cerr<<"[LOG] "<<s<<endl; } |