From 45bb73a9bf4692c68294be12a2e25a39ca3a307b Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Thu, 15 Oct 1998 14:06:16 +0000 Subject: Commited WIN32 patches from Bill Spitzak and Gustavo Hime. git-svn-id: file:///fltk/svn/fltk/trunk@11 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Bitmap.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/Fl_Bitmap.cxx') diff --git a/src/Fl_Bitmap.cxx b/src/Fl_Bitmap.cxx index b0bb53ab8..38d37046c 100644 --- a/src/Fl_Bitmap.cxx +++ b/src/Fl_Bitmap.cxx @@ -11,7 +11,10 @@ #include #include -void Fl_Bitmap::draw(int X, int Y, int W, int H, int cx,int cy) { +void Fl_Bitmap::draw(int XP, int YP, int WP, int HP, int cx, int cy) { + // account for current clip region (faster on Irix): + int X,Y,W,H; fl_clip_box(XP,YP,WP,HP,X,Y,W,H); + cx += X-XP; cy += Y-YP; // clip the box down to the size of image, quit if empty: if (cx < 0) {W += cx; X -= cx; cx = 0;} if (cx+W > w) W = w-cx; -- cgit v1.2.3