aboutsummaryrefslogtreecommitdiff
path: root/backends/platform
diff options
context:
space:
mode:
authorCameron Cawley2019-12-14 18:42:37 +0000
committerGitHub2019-12-14 18:42:37 +0000
commit0edf2da7ba3257d31053a6a18927fc37b7441260 (patch)
treed314eaeffac59a2f05f14c9a53262f143667b3c3 /backends/platform
parentc3c3137ab3a3d09c12eaa7140cb7ec760bdfe924 (diff)
downloadscummvm-rg350-0edf2da7ba3257d31053a6a18927fc37b7441260.tar.gz
scummvm-rg350-0edf2da7ba3257d31053a6a18927fc37b7441260.tar.bz2
scummvm-rg350-0edf2da7ba3257d31053a6a18927fc37b7441260.zip
3DS: Fix compilation
Diffstat (limited to 'backends/platform')
-rw-r--r--backends/platform/3ds/sprite.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/platform/3ds/sprite.cpp b/backends/platform/3ds/sprite.cpp
index 74805b40cb..1b4383706e 100644
--- a/backends/platform/3ds/sprite.cpp
+++ b/backends/platform/3ds/sprite.cpp
@@ -51,8 +51,8 @@ void Sprite::create(uint16 width, uint16 height, const Graphics::PixelFormat &f)
actualWidth = width;
actualHeight = height;
format = f;
- w = MAX(Common::nextHigher2(width), 64u);
- h = MAX(Common::nextHigher2(height), 64u);
+ w = MAX<uint16>(Common::nextHigher2(width), 64u);
+ h = MAX<uint16>(Common::nextHigher2(height), 64u);
pitch = w * format.bytesPerPixel;
dirtyPixels = true;