aboutsummaryrefslogtreecommitdiff
path: root/graphics/transparent_surface.h
diff options
context:
space:
mode:
authorEugene Sandulenko2014-06-17 14:54:53 +0300
committerEugene Sandulenko2014-06-17 14:54:53 +0300
commit58472402341a6445245e8fccccf041a17d362983 (patch)
tree62e0af4cb3652f9301971f1560b3c324a854a737 /graphics/transparent_surface.h
parent343910d3ce604149fa885dd562a113da7bbd05c8 (diff)
downloadscummvm-rg350-58472402341a6445245e8fccccf041a17d362983.tar.gz
scummvm-rg350-58472402341a6445245e8fccccf041a17d362983.tar.bz2
scummvm-rg350-58472402341a6445245e8fccccf041a17d362983.zip
GRAPHICS: Rename BS_ to TS_ (for TransparentSurface)
Diffstat (limited to 'graphics/transparent_surface.h')
-rw-r--r--graphics/transparent_surface.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/graphics/transparent_surface.h b/graphics/transparent_surface.h
index cc35f8e6a0..ca26b2679a 100644
--- a/graphics/transparent_surface.h
+++ b/graphics/transparent_surface.h
@@ -36,8 +36,8 @@
*/
// TODO: Find a better solution for this.
-#define BS_RGB(R,G,B) (0xFF000000 | ((R) << 16) | ((G) << 8) | (B))
-#define BS_ARGB(A,R,G,B) (((A) << 24) | ((R) << 16) | ((G) << 8) | (B))
+#define TS_RGB(R,G,B) (((R) << 24) | ((G) << 16) | (B << 8) | (A)
+#define TS_ARGB(A,R,G,B) (((R) << 24) | ((G) << 16) | ((B) << 8) | (A))
namespace Graphics {
@@ -82,15 +82,15 @@ struct TransparentSurface : public Graphics::Surface {
@param posY the position on the Y-axis in the target image in pixels where the image is supposed to be rendered.<br>
The default value is 0.
@param flipping how the the image should be flipped.<br>
- The default value is BS_Image::FLIP_NONE (no flipping)
+ The default value is Graphics::FLIP_NONE (no flipping)
@param pPartRect Pointer on Common::Rect which specifies the section to be rendered. If the whole image has to be rendered the Pointer is NULL.<br>
This referes to the unflipped and unscaled image.<br>
The default value is NULL.
@param color an ARGB color value, which determines the parameters for the color modulation und alpha blending.<br>
The alpha component of the color determines the alpha blending parameter (0 = no covering, 255 = full covering).<br>
The color components determines the color for color modulation.<br>
- The default value is BS_ARGB(255, 255, 255, 255) (full covering, no color modulation).
- The macros BS_RGB and BS_ARGB can be used for the creation of the color value.
+ The default value is TS_ARGB(255, 255, 255, 255) (full covering, no color modulation).
+ The macros TS_RGB and TS_ARGB can be used for the creation of the color value.
@param width the output width of the screen section.
The images will be scaled if the output width of the screen section differs from the image section.<br>
The value -1 determines that the image should not be scaled.<br>
@@ -104,7 +104,7 @@ struct TransparentSurface : public Graphics::Surface {
Common::Rect blit(Graphics::Surface &target, int posX = 0, int posY = 0,
int flipping = FLIP_NONE,
Common::Rect *pPartRect = nullptr,
- uint color = BS_ARGB(255, 255, 255, 255),
+ 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);