summaryrefslogtreecommitdiff
path: root/src/resources/subimage.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-21 18:57:48 +0300
committerAndrei Karas <akaras@inbox.ru>2013-04-21 18:57:48 +0300
commit35cfd460655878c9a615abc8ea1cb2f7577a7f3b (patch)
tree2b4cb899f7f442912f89de30f4a5ab0add0727ce /src/resources/subimage.cpp
parentcfe4c893ba4ba30379919636d3c508ebf1594e23 (diff)
downloadplus-35cfd460655878c9a615abc8ea1cb2f7577a7f3b.tar.gz
plus-35cfd460655878c9a615abc8ea1cb2f7577a7f3b.tar.bz2
plus-35cfd460655878c9a615abc8ea1cb2f7577a7f3b.tar.xz
plus-35cfd460655878c9a615abc8ea1cb2f7577a7f3b.zip
some other fixes from cpplint.
Diffstat (limited to 'src/resources/subimage.cpp')
-rw-r--r--src/resources/subimage.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/resources/subimage.cpp b/src/resources/subimage.cpp
index cad476f2f..c7e250b78 100644
--- a/src/resources/subimage.cpp
+++ b/src/resources/subimage.cpp
@@ -59,8 +59,8 @@ SubImage::SubImage(Image *const parent, SDL_Surface *const image,
}
// Set up the rectangle.
- mBounds.x = static_cast<short>(x);
- mBounds.y = static_cast<short>(y);
+ mBounds.x = static_cast<int16_t>(x);
+ mBounds.y = static_cast<int16_t>(y);
mBounds.w = static_cast<uint16_t>(width);
mBounds.h = static_cast<uint16_t>(height);
if (mParent)
@@ -92,8 +92,8 @@ SubImage::SubImage(Image *const parent, const GLuint image,
mParent->incRef();
// Set up the rectangle.
- mBounds.x = static_cast<short>(x);
- mBounds.y = static_cast<short>(y);
+ mBounds.x = static_cast<int16_t>(x);
+ mBounds.y = static_cast<int16_t>(y);
mBounds.w = static_cast<uint16_t>(width);
mBounds.h = static_cast<uint16_t>(height);
if (mParent)