diff options
author | Max Horn | 2009-03-22 22:02:25 +0000 |
---|---|---|
committer | Max Horn | 2009-03-22 22:02:25 +0000 |
commit | 277b8e6190d67e816694a78dc22f99f1c9b45d20 (patch) | |
tree | 89e1427cce6631ac61f37af4e2508dcabc1c5aee /engines/sci | |
parent | 8f4831a1d9a535ffd90891f2024ca2139b50c13e (diff) | |
download | scummvm-rg350-277b8e6190d67e816694a78dc22f99f1c9b45d20.tar.gz scummvm-rg350-277b8e6190d67e816694a78dc22f99f1c9b45d20.tar.bz2 scummvm-rg350-277b8e6190d67e816694a78dc22f99f1c9b45d20.zip |
SCI: Fixed nasty bug in simulate_stippled_line_draw, caught only thanks to warnings by the Wii compiler.
svn-id: r39616
Diffstat (limited to 'engines/sci')
-rw-r--r-- | engines/sci/gfx/operations.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sci/gfx/operations.cpp b/engines/sci/gfx/operations.cpp index 4dd60fa46b..da5f4bdc02 100644 --- a/engines/sci/gfx/operations.cpp +++ b/engines/sci/gfx/operations.cpp @@ -754,18 +754,18 @@ static int simulate_stippled_line_draw(gfx_driver_t *driver, int skipone, Common int stepwidth = (xl) ? driver->mode->xfact : driver->mode->yfact; int dbl_stepwidth = 2 * stepwidth; int linelength = (line_mode == GFX_LINE_MODE_FINE) ? stepwidth - 1 : 0; - int *posvar; + int16 *posvar; int length; int delta; int length_left; if (!xl) { // xl = 0, so we move along yl - posvar = (int *) &start.y; + posvar = &start.y; length = yl; delta = (yl < 0) ? -dbl_stepwidth : dbl_stepwidth; } else { assert(!yl); // We don't do diagonals; that's not needed ATM. - posvar = (int *) &start.x; + posvar = &start.x; length = xl; delta = (xl < 0) ? -dbl_stepwidth : dbl_stepwidth; } |