aboutsummaryrefslogtreecommitdiff
path: root/graphics/nine_patch.h
diff options
context:
space:
mode:
authorEugene Sandulenko2019-09-29 16:39:13 +0200
committerEugene Sandulenko2019-09-29 16:40:06 +0200
commit2da99ab0dc8f71d00f89f0a45e4149844a17f037 (patch)
tree58c6b63863337d42fcb7a81763059ae072b9f6fa /graphics/nine_patch.h
parent6f20f676cdd3c998d8dda5f609f30c5e5184f54d (diff)
downloadscummvm-rg350-2da99ab0dc8f71d00f89f0a45e4149844a17f037.tar.gz
scummvm-rg350-2da99ab0dc8f71d00f89f0a45e4149844a17f037.tar.bz2
scummvm-rg350-2da99ab0dc8f71d00f89f0a45e4149844a17f037.zip
GRAPHICS: Fix NinePatch palette length.
Byte did not allow to have 256 color palettes.
Diffstat (limited to 'graphics/nine_patch.h')
-rw-r--r--graphics/nine_patch.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/nine_patch.h b/graphics/nine_patch.h
index 6674099116..d341919baa 100644
--- a/graphics/nine_patch.h
+++ b/graphics/nine_patch.h
@@ -88,7 +88,7 @@ public:
NinePatchBitmap(Graphics::TransparentSurface *bmp, bool owns_bitmap);
~NinePatchBitmap();
- void blit(Graphics::Surface &target, int dx, int dy, int dw, int dh, byte *palette = NULL, byte numColors = 0);
+ void blit(Graphics::Surface &target, int dx, int dy, int dw, int dh, byte *palette = NULL, int numColors = 0);
void blitClip(Graphics::Surface &target, Common::Rect clip, int dx, int dy, int dw, int dh);
int getWidth() { return _width; }
@@ -106,7 +106,7 @@ private:
byte getColorIndex(uint32 target, byte *palette);
uint32 grayscale(uint32 color);
uint32 grayscale(byte r, byte g, byte b);
- byte closestGrayscale(uint32 color, byte* palette, byte paletteLength);
+ byte closestGrayscale(uint32 color, byte* palette, int paletteLength);
};
} // end of namespace Graphics