diff options
author | Tobia Tesan | 2013-07-15 21:42:16 +0200 |
---|---|---|
committer | Tobia Tesan | 2013-08-01 00:06:40 +0200 |
commit | 286b1d11ca798249d412adb52e453404de7b727e (patch) | |
tree | 45146d9c2d8eefa10f0966495268413669ba7358 | |
parent | 64db90ed67e385a7ba8ca18faa0da345987201db (diff) | |
download | scummvm-rg350-286b1d11ca798249d412adb52e453404de7b727e.tar.gz scummvm-rg350-286b1d11ca798249d412adb52e453404de7b727e.tar.bz2 scummvm-rg350-286b1d11ca798249d412adb52e453404de7b727e.zip |
WINTERMUTE: Use Rect::width() and height() in base_surface_osystem.cpp
-rw-r--r-- | engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp b/engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp index 8ec60bfd68..6db4818945 100644 --- a/engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp +++ b/engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp @@ -409,10 +409,10 @@ bool BaseSurfaceOSystem::drawSprite(int x, int y, Rect32 *rect, Rect32 *newRect, if (newRect) { position.top = y; position.left = x; - position.right = x + (newRect->right - newRect->left); - position.bottom = y + (newRect->top - newRect->bottom); - position.setWidth(newRect->right - newRect->left); - position.setHeight(newRect->bottom - newRect->top); + position.right = x + newRect->width(); + position.bottom = y + newRect->height(); + position.setWidth(newRect->width()); + position.setHeight(newRect->height()); } else { position.setWidth((int16)((float)srcRect.width() * transform._zoom.x / DEFAULT_ZOOM_X)); position.setHeight((int16)((float)srcRect.height() * transform._zoom.y / DEFAULT_ZOOM_Y)); |