Author: fabien
Date: 2012-04-21 19:59:27 -0700 (Sat, 21 Apr 2012)
New Revision: 9374
Log:
restore transparent_c use for win32...
Modified:
branches/branch-1.3/src/fl_draw_pixmap.cxx
Modified: branches/branch-1.3/src/fl_draw_pixmap.cxx
===================================================================
--- branches/branch-1.3/src/fl_draw_pixmap.cxx 2012-04-22 02:45:09 UTC (rev
9373)
+++ branches/branch-1.3/src/fl_draw_pixmap.cxx 2012-04-22 02:59:27 UTC (rev
9374)
@@ -209,8 +209,8 @@
if (!fl_measure_pixmap(cdata, d.w, d.h)) return 0;
const uchar*const* data = (const uchar*const*)(cdata+1);
int transparent_index = -1;
-// uchar *transparent_c = (uchar *)0; // such that transparent_c[0,1,2] are
the RGB of the transparent color
#ifdef WIN32
+ uchar *transparent_c = (uchar *)0; // such that transparent_c[0,1,2] are the
RGB of the transparent color
color_count = 0;
used_colors = (uchar *)malloc(abs(ncolors)*3*sizeof(uchar));
#endif
@@ -230,7 +230,7 @@
#endif
transparent_index = ' ';
Fl::get_color(bg, c[0], c[1], c[2]); c[3] = 0;
- // transparent_c = c;
+ transparent_c = c;
p += 4;
ncolors--;
}
@@ -316,7 +316,9 @@
c[3] = 0;
#endif
transparent_index = ind;
- //transparent_c = c;
+#ifdef WIN32
+ transparent_c = c;
+#endif
}
}
}
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit