Browse Source

Fl_Panzoomer: Use FL_DAMAGE_USER1 to indicate that only the cursor needs to be redrawn.

tags/v1.3.1000
Jonathan Moore Liles 12 years ago
parent
commit
12407a4d2f
2 changed files with 4 additions and 4 deletions
  1. +2
    -3
      FL/Fl_Panzoomer.H
  2. +2
    -1
      src/Fl_Panzoomer.cxx

+ 2
- 3
FL/Fl_Panzoomer.H View File

@@ -69,7 +69,7 @@ public:
_xpos = pos;
_xsize = size;

redraw();
damage( FL_DAMAGE_USER1 );

return pos;
}
@@ -84,8 +84,7 @@ public:
_ypos = pos;
_ysize = size;


redraw();
damage( FL_DAMAGE_USER1 );

return pos;
}


+ 2
- 1
src/Fl_Panzoomer.cxx View File

@@ -94,7 +94,8 @@ Fl_Panzoomer::draw ( void )
void
Fl_Panzoomer::draw ( int X, int Y, int W, int H )
{
fl_draw_box( box(), X,Y,W,H,color());
if ( ! (damage() & FL_DAMAGE_USER1 ))
fl_draw_box( box(), X,Y,W,H,color());

X += Fl::box_dx( box() );
Y += Fl::box_dy( box() );


Loading…
Cancel
Save