Skip to content

Commit

Permalink
One last Pixmap fix from Matthias.
Browse files Browse the repository at this point in the history
git-svn-id: file:///fltk/svn/fltk/trunk@125 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
michaelrsweet committed Dec 3, 1998
1 parent be689f9 commit 5fea931
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Fl_Pixmap.cxx
@@ -1,5 +1,5 @@
//
// "$Id: Fl_Pixmap.cxx,v 1.4 1998/10/21 14:20:16 mike Exp $"
// "$Id: Fl_Pixmap.cxx,v 1.5 1998/12/03 13:28:21 mike Exp $"
//
// Pixmap drawing code for the Fast Light Tool Kit (FLTK).
//
Expand Down Expand Up @@ -42,7 +42,10 @@ void fl_restore_clip(); // in fl_rect.C

void Fl_Pixmap::draw(int XP, int YP, int WP, int HP, int cx, int cy) {
// ignore empty or bad pixmap data:
if (w<0) fl_measure_pixmap(data, w, h);
if (w<0) {
fl_measure_pixmap(data, w, h);
if (WP==-1) { WP = w; HP = h; } // correct the default setting
}
if (!w) return;
// account for current clip region (faster on Irix):
int X,Y,W,H; fl_clip_box(XP,YP,WP,HP,X,Y,W,H);
Expand Down Expand Up @@ -140,5 +143,5 @@ void Fl_Pixmap::label(Fl_Menu_Item* o) {
}

//
// End of "$Id: Fl_Pixmap.cxx,v 1.4 1998/10/21 14:20:16 mike Exp $".
// End of "$Id: Fl_Pixmap.cxx,v 1.5 1998/12/03 13:28:21 mike Exp $".
//

0 comments on commit 5fea931

Please sign in to comment.