aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/xsurface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/xeen/xsurface.cpp')
-rw-r--r--engines/xeen/xsurface.cpp46
1 files changed, 0 insertions, 46 deletions
diff --git a/engines/xeen/xsurface.cpp b/engines/xeen/xsurface.cpp
index 1793d76129..5f10a83dc6 100644
--- a/engines/xeen/xsurface.cpp
+++ b/engines/xeen/xsurface.cpp
@@ -28,50 +28,4 @@
namespace Xeen {
-XSurface::XSurface() : Graphics::Surface(), _freeFlag(false) {
-}
-
-XSurface::XSurface(int width, int height) : Graphics::Surface(),
- _freeFlag(false) {
- create(w, h);
-}
-
-XSurface::~XSurface() {
- if (_freeFlag)
- free();
-}
-
-void XSurface::create(uint16 width, uint16 height) {
- Graphics::Surface::create(width, height, Graphics::PixelFormat::createFormatCLUT8());
- _freeFlag = true;
-}
-
-void XSurface::create(XSurface *s, const Common::Rect &bounds) {
- pixels = (byte *)s->getBasePtr(bounds.left, bounds.top);
- format = Graphics::PixelFormat::createFormatCLUT8();
- pitch = s->pitch;
- w = bounds.width();
- h = bounds.height();
-
- _freeFlag = false;
-}
-
-void XSurface::blitTo(XSurface &dest) const {
- blitTo(dest, Common::Point());
-}
-
-void XSurface::blitTo(XSurface &dest, const Common::Point &destPos) const {
- if (dest.getPixels() == nullptr)
- dest.create(w, h);
-
- for (int yp = 0; yp < h; ++yp) {
- const byte *srcP = (const byte *)getBasePtr(0, yp);
- byte *destP = (byte *)dest.getBasePtr(destPos.x, destPos.y + yp);
-
- Common::copy(srcP, srcP + w, destP);
- }
-
- dest.addDirtyRect(Common::Rect(destPos.x, destPos.y, destPos.x + w, destPos.y + h));
-}
-
} // End of namespace Xeen