From b670070c6cf387dbd7ae087c1c4db97b8a818734 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Wed, 18 Mar 2009 07:59:46 +0000 Subject: Cleanup svn-id: r39506 --- engines/sci/gfx/operations.cpp | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'engines/sci') diff --git a/engines/sci/gfx/operations.cpp b/engines/sci/gfx/operations.cpp index 943eead5d7..c4bcaff5d2 100644 --- a/engines/sci/gfx/operations.cpp +++ b/engines/sci/gfx/operations.cpp @@ -80,21 +80,15 @@ if (!state->driver) { \ // Internal operations static void _gfxop_scale_rect(rect_t *rect, gfx_mode_t *mode) { - int xfact = mode->xfact; - int yfact = mode->yfact; - - rect->x *= xfact; - rect->y *= yfact; - rect->width *= xfact; - rect->height *= yfact; + rect->x *= mode->xfact; + rect->y *= mode->yfact; + rect->width *= mode->xfact; + rect->height *= mode->yfact; } static void _gfxop_scale_point(Common::Point *point, gfx_mode_t *mode) { - int xfact = mode->xfact; - int yfact = mode->yfact; - - point->x *= xfact; - point->y *= yfact; + point->x *= mode->xfact; + point->y *= mode->yfact; } int _gfxop_clip(rect_t *rect, rect_t clipzone) { -- cgit v1.2.3