Skip to content

Commit

Permalink
ZVISION: Fix a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
bluegr committed Dec 26, 2014
1 parent 5a72eea commit e8820d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/zvision/scripting/controls/input_control.cpp
Expand Up @@ -223,7 +223,7 @@ bool InputControl::process(uint32 deltaTimeInMillis) {
if (needDraw) {
_animation->seekToFrame(_frame);
const Graphics::Surface *srf = _animation->decodeNextFrame();
uint32 xx = _textRectangle.left + _txtWidth;
int16 xx = _textRectangle.left + _txtWidth;
if (xx >= _textRectangle.left + (_textRectangle.width() - (int16)_animation->getWidth()))
xx = _textRectangle.left + _textRectangle.width() - (int16)_animation->getWidth();
_engine->getRenderManager()->blitSurfaceToBkg(*srf, xx, _textRectangle.top);
Expand Down

0 comments on commit e8820d2

Please sign in to comment.