From 9c758380115f01878036f2985f7f02146e3d860f Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Thu, 6 Dec 2001 18:12:35 +0000 Subject: Use FL_NO_BOX for check button and round button. Clip Fl_Tiled_Image to the bounding box. Draw Fl_Progress using the box. Draw plastic box types right for narrow (but horizontal buttons) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1814 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Tiled_Image.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/Fl_Tiled_Image.cxx') diff --git a/src/Fl_Tiled_Image.cxx b/src/Fl_Tiled_Image.cxx index fc652ca43..22cb2b86c 100644 --- a/src/Fl_Tiled_Image.cxx +++ b/src/Fl_Tiled_Image.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Tiled_Image.cxx,v 1.1.2.1 2001/11/24 18:07:57 easysw Exp $" +// "$Id: Fl_Tiled_Image.cxx,v 1.1.2.2 2001/12/06 18:12:35 easysw Exp $" // // Tiled image code for the Fast Light Tool Kit (FLTK). // @@ -113,6 +113,8 @@ Fl_Tiled_Image::draw(int X, // I - Starting X position if (W == 0) W = Fl::w(); if (H == 0) H = Fl::h(); + fl_clip(X, Y, W, H); + X += cx; Y += cy; @@ -125,9 +127,11 @@ Fl_Tiled_Image::draw(int X, // I - Starting X position for (int yy = Y; yy < H; yy += image_->h()) for (int xx = X; xx < W; xx += image_->w()) image_->draw(xx, yy); + + fl_pop_clip(); } // -// End of "$Id: Fl_Tiled_Image.cxx,v 1.1.2.1 2001/11/24 18:07:57 easysw Exp $". +// End of "$Id: Fl_Tiled_Image.cxx,v 1.1.2.2 2001/12/06 18:12:35 easysw Exp $". // -- cgit v1.2.3