spritecanvashelper.cxx (5f27b83c) spritecanvashelper.cxx (a72d41dc)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 449 unchanged lines hidden (view full) ---

458
459 ENSURE_OR_THROW( aFirst->second.getSprite().is(),
460 "VCLCanvas::scrollUpdate(): no sprite" );
461
462 // repaint uncovered areas from sprite. Need to actually
463 // clip here, since we're only repainting _parts_ of the
464 // sprite
465 rOutDev.Push( PUSH_CLIPREGION );
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 449 unchanged lines hidden (view full) ---

458
459 ENSURE_OR_THROW( aFirst->second.getSprite().is(),
460 "VCLCanvas::scrollUpdate(): no sprite" );
461
462 // repaint uncovered areas from sprite. Need to actually
463 // clip here, since we're only repainting _parts_ of the
464 // sprite
465 rOutDev.Push( PUSH_CLIPREGION );
466 const Sprite::Reference& rSprite = aFirst->second.getSprite();
466 ::std::for_each( aUnscrollableAreas.begin(),
467 aUnscrollableAreas.end(),
468 ::boost::bind( &opaqueUpdateSpriteArea,
467 ::std::for_each( aUnscrollableAreas.begin(),
468 aUnscrollableAreas.end(),
469 ::boost::bind( &opaqueUpdateSpriteArea,
469 ::boost::cref(aFirst->second.getSprite()),
470 ::boost::cref(rSprite),
470 ::boost::ref(rOutDev),
471 _1 ) );
472 rOutDev.Pop();
473 }
474
475 // repaint uncovered areas from backbuffer - take the
476 // _rounded_ rectangles from above, to have the update
477 // consistent with the scroll above.

--- 101 unchanged lines hidden (view full) ---

579 maVDev->SetAntialiasing( ANTIALIASING_ENABLE_B2DDRAW );
580 maVDev->SetClipRegion();
581 maVDev->DrawOutDev( aEmptyPoint, aOutputSize,
582 aOutputPosition, aOutputSize,
583 rBackOutDev );
584
585 // repaint all affected sprites on top of background into
586 // VDev.
471 ::boost::ref(rOutDev),
472 _1 ) );
473 rOutDev.Pop();
474 }
475
476 // repaint uncovered areas from backbuffer - take the
477 // _rounded_ rectangles from above, to have the update
478 // consistent with the scroll above.

--- 101 unchanged lines hidden (view full) ---

580 maVDev->SetAntialiasing( ANTIALIASING_ENABLE_B2DDRAW );
581 maVDev->SetClipRegion();
582 maVDev->DrawOutDev( aEmptyPoint, aOutputSize,
583 aOutputPosition, aOutputSize,
584 rBackOutDev );
585
586 // repaint all affected sprites on top of background into
587 // VDev.
588 ::basegfx::B2DPoint aPoint = ::vcl::unotools::b2DPointFromPoint(aOutputPosition);
587 ::std::for_each( rSortedUpdateSprites.begin(),
588 rSortedUpdateSprites.end(),
589 ::boost::bind( &spriteRedrawStub2,
590 ::boost::ref( maVDev.get() ),
589 ::std::for_each( rSortedUpdateSprites.begin(),
590 rSortedUpdateSprites.end(),
591 ::boost::bind( &spriteRedrawStub2,
592 ::boost::ref( maVDev.get() ),
591 ::boost::cref(
592 ::vcl::unotools::b2DPointFromPoint(aOutputPosition)),
593 ::boost::cref( aPoint ),
593 _1 ) );
594
595 // flush to screen
596 rOutDev.EnableMapMode( sal_False );
597 rOutDev.SetAntialiasing( ANTIALIASING_ENABLE_B2DDRAW );
598 rOutDev.DrawOutDev( aOutputPosition, aOutputSize,
599 aEmptyPoint, aOutputSize,
600 *maVDev );

--- 118 unchanged lines hidden ---
594 _1 ) );
595
596 // flush to screen
597 rOutDev.EnableMapMode( sal_False );
598 rOutDev.SetAntialiasing( ANTIALIASING_ENABLE_B2DDRAW );
599 rOutDev.DrawOutDev( aOutputPosition, aOutputSize,
600 aEmptyPoint, aOutputSize,
601 *maVDev );

--- 118 unchanged lines hidden ---