diff options
author | D G Turner | 2013-07-31 03:36:16 +0100 |
---|---|---|
committer | D G Turner | 2013-07-31 03:36:16 +0100 |
commit | ffef92a134a27790584d4d2656e8966a980b5063 (patch) | |
tree | 64cb0f026e8ce4c89cdb4d0b3c4b4d4102378a7c /engines/mortevielle/graphics.cpp | |
parent | 1396052dc9ee95618c7d57f9230803bccb2f99d9 (diff) | |
download | scummvm-rg350-ffef92a134a27790584d4d2656e8966a980b5063.tar.gz scummvm-rg350-ffef92a134a27790584d4d2656e8966a980b5063.tar.bz2 scummvm-rg350-ffef92a134a27790584d4d2656e8966a980b5063.zip |
MORTEVIELLE: Fix two GCC compiler warnings.
The first is due to a variable set but never used i.e. destSurface, but
I think this call is still needed to lock the area being copied, hence
have removed the variable, but not the call.
The second was a real bug in the type of the print format string used
for savegame naming. slot is a number, not a string and can vary from 0
to 999, hence the 3 digit fixed size with zero padded prefix.
Diffstat (limited to 'engines/mortevielle/graphics.cpp')
-rw-r--r-- | engines/mortevielle/graphics.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/mortevielle/graphics.cpp b/engines/mortevielle/graphics.cpp index 8392fabd6a..c066114e8d 100644 --- a/engines/mortevielle/graphics.cpp +++ b/engines/mortevielle/graphics.cpp @@ -974,7 +974,7 @@ void ScreenSurface::drawPicture(GfxSurface &surface, int x, int y) { * Copys a given surface to the given position */ void ScreenSurface::copyFrom(Graphics::Surface &src, int x, int y) { - Graphics::Surface destSurface = lockArea(Common::Rect(x, y, x + src.w, y + src.h)); + lockArea(Common::Rect(x, y, x + src.w, y + src.h)); // Loop through writing for (int yp = 0; yp < src.h; ++yp) { |