From 4b87563792163d5fd538092b340500bccd20aa7b Mon Sep 17 00:00:00 2001 From: Alexander Tkachev Date: Thu, 30 Jun 2016 23:34:25 +0600 Subject: GUI: Add blipClip() --- graphics/transparent_surface.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'graphics/transparent_surface.h') 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); /** -- cgit v1.2.3