git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65631
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
vx *= wxPG_PIXELS_PER_UNIT;
vy *= wxPG_PIXELS_PER_UNIT;
vx *= wxPG_PIXELS_PER_UNIT;
vy *= wxPG_PIXELS_PER_UNIT;
+ // itemRect is in virtual grid space
wxRect drawRect(itemsRect->x - vx,
itemsRect->y - vy,
itemsRect->width,
wxRect drawRect(itemsRect->x - vx,
itemsRect->y - vy,
itemsRect->width,
+ // paintFinishY and drawBottomY are in buffer/physical space
paintFinishY = DoDrawItems( *dcPtr, itemsRect, isBuffered );
paintFinishY = DoDrawItems( *dcPtr, itemsRect, isBuffered );
- int drawBottomY = itemsRect->y + itemsRect->height;
+ int drawBottomY = itemsRect->y + itemsRect->height - vy;
// Clear area beyond last painted property
if ( paintFinishY < drawBottomY )
// Clear area beyond last painted property
if ( paintFinishY < drawBottomY )