diff options
author | Eugene Sandulenko | 2016-08-30 13:54:12 +0200 |
---|---|---|
committer | GitHub | 2016-08-30 13:54:12 +0200 |
commit | bfbfbd3e1a8397cc3b1c9eaff6c7754abe3ddc3d (patch) | |
tree | 68851bdc99b78b4b1902944c1df3c3ee5d4f4489 /graphics/transparent_surface.h | |
parent | 7df744c291e5fcf5dc7afd3b21189c2c56810f8e (diff) | |
parent | 368f664c813075f8b8cb2c572dce65f60128eda4 (diff) | |
download | scummvm-rg350-bfbfbd3e1a8397cc3b1c9eaff6c7754abe3ddc3d.tar.gz scummvm-rg350-bfbfbd3e1a8397cc3b1c9eaff6c7754abe3ddc3d.tar.bz2 scummvm-rg350-bfbfbd3e1a8397cc3b1c9eaff6c7754abe3ddc3d.zip |
Merge pull request #788 from Tkachov/cloud
ALL: Add Cloud storage support
Diffstat (limited to 'graphics/transparent_surface.h')
-rw-r--r-- | graphics/transparent_surface.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/graphics/transparent_surface.h b/graphics/transparent_surface.h index c0d3d26e52..8654183548 100644 --- a/graphics/transparent_surface.h +++ b/graphics/transparent_surface.h @@ -151,6 +151,16 @@ struct TransparentSurface : public Graphics::Surface { * */ TransparentSurface *rotoscale(const TransformStruct &transform) const; + + TransparentSurface *convertTo(const PixelFormat &dstFormat, const byte *palette = 0) const; + + float getRatio() { + if (!w) + return 0; + + return h / (float)w; + } + AlphaType getAlphaMode() const; void setAlphaMode(AlphaType); private: |