aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorFilippos Karapetis2009-03-18 07:59:46 +0000
committerFilippos Karapetis2009-03-18 07:59:46 +0000
commitb670070c6cf387dbd7ae087c1c4db97b8a818734 (patch)
treef1f0b18cc650c9cf7070d4612f22c0594bc38e15 /engines/sci
parent717102578ba4a6721c88235435ac5b51a97fa4be (diff)
downloadscummvm-rg350-b670070c6cf387dbd7ae087c1c4db97b8a818734.tar.gz
scummvm-rg350-b670070c6cf387dbd7ae087c1c4db97b8a818734.tar.bz2
scummvm-rg350-b670070c6cf387dbd7ae087c1c4db97b8a818734.zip
Cleanup
svn-id: r39506
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/gfx/operations.cpp18
1 files changed, 6 insertions, 12 deletions
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) {