mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-01 06:58:34 +00:00
WINTERMUTE: Use Rect::width() and height() in base_surface_osystem.cpp
This commit is contained in:
parent
64db90ed67
commit
286b1d11ca
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user