File tree Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -1629,7 +1629,7 @@ bool MaskRomTool::markBits(bool full){
1629
1629
1630
1630
1631
1631
// Maximum number of bits that we might clear in one frame.
1632
- #define BITCLEARINGLIMIT 5000
1632
+ #define BITCLEARINGLIMIT 25000
1633
1633
1634
1634
// Mark up all of the bits where rows and columns collide.
1635
1635
void MaskRomTool::clearBits (bool full){
@@ -1645,22 +1645,13 @@ void MaskRomTool::clearBits(bool full){
1645
1645
* wipe away bits without hogging the redraw thread. Like markBits(),
1646
1646
* it might take a few frames to finish on large projects.
1647
1647
*/
1648
-
1649
- // Grab all those that are visible first.
1650
- auto rect=view->mapToScene (view->viewport ()->rect ()).boundingRect ();
1651
- auto secondrect=second.view ->mapToScene (second.view ->viewport ()->rect ()).boundingRect ();
1652
-
1653
- if (!second.isVisible ()) secondrect=rect;
1654
- foreach (QGraphicsItem* item,
1655
- // view->items(view->sceneRect().toRect())){
1656
- bits){
1657
- if ( (rect.contains (item->pos ()) || secondrect.contains (item->pos ()))
1658
- && count++<BITCLEARINGLIMIT
1659
- ){
1648
+ foreach (QGraphicsItem* item, bits){
1649
+ if (isPointVisible (item->pos ())){
1660
1650
scene->removeItem (item);
1661
1651
delete item;
1662
1652
bits.removeOne (item);
1663
1653
bitcount--;
1654
+ count++;
1664
1655
}
1665
1656
}
1666
1657
// Grab some more opportunistically.
You can’t perform that action at this time.
0 commit comments