diff options
author | Alexander Tkachev | 2016-06-30 23:34:25 +0600 |
---|---|---|
committer | Eugene Sandulenko | 2016-07-03 12:23:57 +0200 |
commit | 4b87563792163d5fd538092b340500bccd20aa7b (patch) | |
tree | bc64bedf5aef5686c82a1d16cf870b0fc7a1bc35 /graphics/transparent_surface.h | |
parent | 916c86e68941cb1a752566ac9c0346263970b366 (diff) | |
download | scummvm-rg350-4b87563792163d5fd538092b340500bccd20aa7b.tar.gz scummvm-rg350-4b87563792163d5fd538092b340500bccd20aa7b.tar.bz2 scummvm-rg350-4b87563792163d5fd538092b340500bccd20aa7b.zip |
GUI: Add blipClip()
Diffstat (limited to 'graphics/transparent_surface.h')
-rw-r--r-- | graphics/transparent_surface.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/graphics/transparent_surface.h b/graphics/transparent_surface.h index 0cd7d5b2e9..c0d3d26e52 100644 --- a/graphics/transparent_surface.h +++ b/graphics/transparent_surface.h @@ -123,6 +123,14 @@ struct TransparentSurface : public Graphics::Surface { uint color = TS_ARGB(255, 255, 255, 255), int width = -1, int height = -1, TSpriteBlendMode blend = BLEND_NORMAL); + Common::Rect blitClip(Graphics::Surface &target, Common::Rect clippingArea, + int posX = 0, int posY = 0, + int flipping = FLIP_NONE, + Common::Rect *pPartRect = nullptr, + uint color = TS_ARGB(255, 255, 255, 255), + int width = -1, int height = -1, + TSpriteBlendMode blend = BLEND_NORMAL); + void applyColorKey(uint8 r, uint8 g, uint8 b, bool overwriteAlpha = false); /** |