mod/maxgui.mod/fltkmaxgui.mod/src/fl_overlay.cxx
void fl_overlay_rect(int x, int y, int w, int h) {
  if (w < 0) {x += w; w = -w;} else if (!w) w = 1;
  if (h < 0) {y += h; h = -h;} else if (!h) h = 1;
  if (pw > 0) {
    if (x==px && y==py && w==pw && h==ph) return;
    erase_current_rect();
  }
  px = x; py = y; pw = w; ph = h;
  draw_current_rect();
}
/**
  Draws a selection rectangle, erasing a previous one by XOR'ing it first.
  */
Draws a selection rectangle, erasing a previous one by XOR'ing it first.
Draws a selection rectangle erasing a previous one by XOR ' ing it first .
void fl_overlay_rect(int x, int y, int w, int h) {
  if (w < 0) {x += w; w = -w;} else if (!w) w = 1;
  if (h < 0) {y += h; h = -h;} else if (!h) h = 1;
  if (pw > 0) {
    if (x==px && y==py && w==pw && h==ph) return;
    erase_current_rect();
  }
  px = x; py = y; pw = w; ph = h;
  draw_current_rect();
}
void fl_overlay_rect ( int x , int y , int w , int h ) { if ( w < 0 ) { x += w ; w = - w ; } else if ( ! w ) w = 1 ; if ( h < 0 ) { y += h ; h = - h ; } else if ( ! h ) h = 1 ; if ( pw > 0 ) { if ( x == px && y == py && w == pw && h == ph ) return ; erase_current_rect ( ) ; } px = x ; py = y ; pw = w ; ph = h ; draw_current_rect ( ) ; }
Draws a selection rectangle, erasing a previous one by XOR'ing it first.
Draws a selection rectangle erasing a previous one by XOR ' ing it first .