cairo_spritecanvashelper.cxx (25ea7f45) | cairo_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 --- 376 unchanged lines hidden (view full) --- 385 386 // repaint uncovered areas from backbuffer - take the 387 // _rounded_ rectangles from above, to have the update 388 // consistent with the scroll above. 389 ::std::vector< ::basegfx::B2DRange > aUncoveredAreas; 390 ::basegfx::computeSetDifference( aUncoveredAreas, 391 rUpdateArea.maTotalBounds, 392 ::basegfx::B2DRange( rDestRect ) ); | 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 --- 376 unchanged lines hidden (view full) --- 385 386 // repaint uncovered areas from backbuffer - take the 387 // _rounded_ rectangles from above, to have the update 388 // consistent with the scroll above. 389 ::std::vector< ::basegfx::B2DRange > aUncoveredAreas; 390 ::basegfx::computeSetDifference( aUncoveredAreas, 391 rUpdateArea.maTotalBounds, 392 ::basegfx::B2DRange( rDestRect ) ); |
393 SurfaceSharedPtr pBufferSurface = mpOwningSpriteCanvas->getBufferSurface(); |
|
393 ::std::for_each( aUncoveredAreas.begin(), 394 aUncoveredAreas.end(), 395 ::boost::bind( &repaintBackground, 396 boost::cref(pCompositingCairo), | 394 ::std::for_each( aUncoveredAreas.begin(), 395 aUncoveredAreas.end(), 396 ::boost::bind( &repaintBackground, 397 boost::cref(pCompositingCairo), |
397 boost::cref(mpOwningSpriteCanvas->getBufferSurface()), | 398 boost::cref(pBufferSurface), |
398 _1 ) ); 399 400 cairo_rectangle( pWindowCairo.get(), 0, 0, rSize.getX(), rSize.getY() ); 401 cairo_clip( pWindowCairo.get() ); 402 cairo_set_source_surface( pWindowCairo.get(), 403 pCompositingSurface->getCairoSurface().get(), 404 0, 0 ); 405 cairo_set_operator( pWindowCairo.get(), CAIRO_OPERATOR_SOURCE ); --- 135 unchanged lines hidden --- | 399 _1 ) ); 400 401 cairo_rectangle( pWindowCairo.get(), 0, 0, rSize.getX(), rSize.getY() ); 402 cairo_clip( pWindowCairo.get() ); 403 cairo_set_source_surface( pWindowCairo.get(), 404 pCompositingSurface->getCairoSurface().get(), 405 0, 0 ); 406 cairo_set_operator( pWindowCairo.get(), CAIRO_OPERATOR_SOURCE ); --- 135 unchanged lines hidden --- |