diff options
author | rubidium <rubidium@openttd.org> | 2010-01-21 01:38:13 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-01-21 01:38:13 +0000 |
commit | f94c83a3874c292ae0d90a7819c971e4bc7aebad (patch) | |
tree | a952b3b5ff3a44ae3b028ee995ee32f968cc2ba0 /src/gfx.cpp | |
parent | 02edae54542cf619cb8d0157d476be45df898119 (diff) | |
download | openttd-f94c83a3874c292ae0d90a7819c971e4bc7aebad.tar.xz |
(svn r18872) -Codechange: introduce PaletteID and use it
Diffstat (limited to 'src/gfx.cpp')
-rw-r--r-- | src/gfx.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gfx.cpp b/src/gfx.cpp index 755097613..e798c97fa 100644 --- a/src/gfx.cpp +++ b/src/gfx.cpp @@ -1028,7 +1028,7 @@ Dimension GetSpriteSize(SpriteID sprid) * @param y Top coordinate of image * @param sub If available, draw only specified part of the sprite */ -void DrawSprite(SpriteID img, SpriteID pal, int x, int y, const SubSprite *sub) +void DrawSprite(SpriteID img, PaletteID pal, int x, int y, const SubSprite *sub) { if (HasBit(img, PALETTE_MODIFIER_TRANSPARENT)) { _colour_remap_ptr = GetNonSprite(GB(pal, 0, PALETTE_WIDTH), ST_RECOLOUR) + 1; @@ -1645,7 +1645,7 @@ bool FillDrawPixelInfo(DrawPixelInfo *n, int left, int top, int width, int heigh return true; } -static void SetCursorSprite(SpriteID cursor, SpriteID pal) +static void SetCursorSprite(CursorID cursor, PaletteID pal) { CursorVars *cv = &_cursor; const Sprite *p; @@ -1682,7 +1682,7 @@ void CursorTick() SwitchAnimatedCursor(); } -void SetMouseCursor(SpriteID sprite, SpriteID pal) +void SetMouseCursor(CursorID sprite, PaletteID pal) { /* Turn off animation */ _cursor.animate_timeout = 0; |