Author: manolo
Date: 2012-05-07 07:00:31 -0700 (Mon, 07 May 2012)
New Revision: 9455
Log:
Fixed use of widget-relative coordinates for image drawing.

Modified:
   branches/branch-3.0/src/fltk3/Bitmap.cxx

Modified: branches/branch-3.0/src/fltk3/Bitmap.cxx
===================================================================
--- branches/branch-3.0/src/fltk3/Bitmap.cxx    2012-05-07 12:42:32 UTC (rev 
9454)
+++ branches/branch-3.0/src/fltk3/Bitmap.cxx    2012-05-07 14:00:31 UTC (rev 
9455)
@@ -368,7 +368,7 @@
   int oy = Y-cy; if (oy < 0) oy += bm->h();
   XSetTSOrigin(fl_display, fl_gc, ox, oy);
   XSetFillStyle(fl_display, fl_gc, FillStippled);
-  XFillRectangle(fl_display, fl_window, fl_gc, X, Y, W, H);
+  XFillRectangle(fl_display, fl_window, fl_gc, X+origin_x(), Y+origin_y(), W, 
H);
   XSetFillStyle(fl_display, fl_gc, FillSolid);
 }
 #endif

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

Reply via email to