GRAPHICS: Unify VectorRenderer blitting routines
This commit is contained in:
parent
dbf192fd13
commit
d3f5d34b62
4 changed files with 5 additions and 22 deletions
|
@ -746,7 +746,7 @@ blitSurface(const Graphics::ManagedSurface *source, const Common::Rect &r) {
|
|||
|
||||
template<typename PixelType>
|
||||
void VectorRendererSpec<PixelType>::
|
||||
blitManagedSurface(const Graphics::ManagedSurface *source, const Common::Point &p, bool themeTrans) {
|
||||
blitKeyBitmap(const Graphics::ManagedSurface *source, const Common::Point &p, bool themeTrans) {
|
||||
Common::Rect drawRect(p.x, p.y, p.x + source->w, p.y + source->h);
|
||||
drawRect.clip(_clippingArea);
|
||||
drawRect.moveTo(0, 0);
|
||||
|
@ -761,20 +761,6 @@ blitManagedSurface(const Graphics::ManagedSurface *source, const Common::Point &
|
|||
_activeSurface->blitFrom(*source, drawRect, p);
|
||||
}
|
||||
|
||||
template<typename PixelType>
|
||||
void VectorRendererSpec<PixelType>::
|
||||
blitKeyBitmap(const Graphics::ManagedSurface *source, const Common::Point &p) {
|
||||
Common::Rect drawRect(p.x, p.y, p.x + source->w, p.y + source->h);
|
||||
drawRect.clip(_clippingArea);
|
||||
drawRect.moveTo(0, 0);
|
||||
|
||||
if (drawRect.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
_activeSurface->transBlitFrom(*source, drawRect, p, _bitmapAlphaColor);
|
||||
}
|
||||
|
||||
template<typename PixelType>
|
||||
void VectorRendererSpec<PixelType>::
|
||||
applyScreenShading(GUI::ThemeEngine::ShadingStyle shadingStyle) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue