Author: manolo
Date: 2012-04-09 13:49:36 -0700 (Mon, 09 Apr 2012)
New Revision: 9336
Log:
Added FLTK 1 compatibility of fl_draw_pixmap().

Modified:
   branches/branch-3.0/include/FL/fl_draw.H

Modified: branches/branch-3.0/include/FL/fl_draw.H
===================================================================
--- branches/branch-3.0/include/FL/fl_draw.H    2012-04-09 12:37:21 UTC (rev 
9335)
+++ branches/branch-3.0/include/FL/fl_draw.H    2012-04-09 20:49:36 UTC (rev 
9336)
@@ -436,11 +436,15 @@
   return fltk3::read_image(p, X, Y, W, H, alpha);
 }
 
-#if 0
+inline int fl_draw_pixmap(char* const* data, int x,int y, Fl_Color bg=FL_GRAY) 
{
+  return fltk3::draw_pixmap(data, x, y, bg);
+}
 
-FL_EXPORT int fl_draw_pixmap(/*const*/ char* const* data, int x,int 
y,Fl_Color=FL_GRAY);
+inline int fl_draw_pixmap(const char* const* data, int x,int y, Fl_Color 
bg=FL_GRAY) {
+  return fltk3::draw_pixmap(data, x, y, bg);
+}
 
-FL_EXPORT int fl_draw_pixmap(const char* const* cdata, int x,int 
y,Fl_Color=FL_GRAY);
+#if 0
 
 FL_EXPORT int fl_measure_pixmap(/*const*/ char* const* data, int &w, int &h);
 

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to