Permalink
Browse files

fixed bug in bitmap scanning that was creating too many rectangles

  • Loading branch information...
1 parent 76d30e6 commit 7881264105b69e7afdd955d50ea81781b352286f @rtv rtv committed Nov 5, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 libstage/stage.cc
View
@@ -83,7 +83,7 @@ static inline void pb_set_rect( Fl_Shared_Image* pb,
{
// zeroing
//uint8_t* pix = pb_get_pixel( pb, x, a );
- uint8_t* pix = (uint8_t*)(pb->data()[0] + (y*width*depth) + x*depth);
+ uint8_t* pix = (uint8_t*)(pb->data()[0] + (a*width*depth) + x*depth);
memset( pix, val, rwidth * depth * bytes_per_sample );
}
}

0 comments on commit 7881264

Please sign in to comment.