From 343910d3ce604149fa885dd562a113da7bbd05c8 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 17 Jun 2014 14:07:19 +0300 Subject: FULLPIPE: Switch graphics to TransparentSurface --- engines/fullpipe/gfx.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/fullpipe/gfx.cpp') diff --git a/engines/fullpipe/gfx.cpp b/engines/fullpipe/gfx.cpp index 220892d67e..5f8177cdc0 100644 --- a/engines/fullpipe/gfx.cpp +++ b/engines/fullpipe/gfx.cpp @@ -54,7 +54,7 @@ Bitmap::Bitmap(Bitmap *src) { _width = src->_width; _height = src->_height; _pixels = src->_pixels; - _surface = new Graphics::Surface(*src->_surface); + _surface = new Graphics::TransparentSurface(*src->_surface); } Bitmap::~Bitmap() { @@ -839,7 +839,7 @@ bool Bitmap::isPixelAtHitPosRB(int x, int y) { } void Bitmap::decode(int32 *palette) { - _surface = new Graphics::Surface; + _surface = new Graphics::TransparentSurface; _surface->create(_width, _height, Graphics::PixelFormat(2, 5, 6, 5, 0, 11, 5, 0, 0)); @@ -881,7 +881,7 @@ void Bitmap::putDib(int x, int y, int32 *palette) { if (sub.width() <= 0 || sub.height() <= 0) return; - g_fp->_backgroundSurface.copyRectToSurface(*_surface, x1, y1, sub); + _surface->blit(g_fp->_backgroundSurface, x1, y1, Graphics::FLIP_NONE, &sub); g_fp->_system->copyRectToScreen(g_fp->_backgroundSurface.getBasePtr(x1, y1), g_fp->_backgroundSurface.pitch, x1, y1, sub.width(), sub.height()); } -- cgit v1.2.3