diff options
author | Strangerke | 2014-02-16 14:38:22 +0100 |
---|---|---|
committer | Strangerke | 2014-02-16 14:39:59 +0100 |
commit | 8df46608ad3f56012163b2e4e19d748bb187466d (patch) | |
tree | 36b673984bc97a07b78c31f764bdfc549c0aa4aa /engines/queen/graphics.cpp | |
parent | 553843a2b52f27fcfe431253cb4f86afc1680e2e (diff) | |
download | scummvm-rg350-8df46608ad3f56012163b2e4e19d748bb187466d.tar.gz scummvm-rg350-8df46608ad3f56012163b2e4e19d748bb187466d.tar.bz2 scummvm-rg350-8df46608ad3f56012163b2e4e19d748bb187466d.zip |
QUEEN: Silent some CppCheck warnings by reducing some variable scopes
Diffstat (limited to 'engines/queen/graphics.cpp')
-rw-r--r-- | engines/queen/graphics.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/queen/graphics.cpp b/engines/queen/graphics.cpp index 70f7d7c94b..d98ddd635f 100644 --- a/engines/queen/graphics.cpp +++ b/engines/queen/graphics.cpp @@ -522,7 +522,7 @@ void Graphics::setBobText(const BobSlot *pbs, const char *text, int textX, int t // Calc text position - short x, y, width, height; + short x, y, width; if (flags) { if (flags == 2) @@ -540,7 +540,7 @@ void Graphics::setBobText(const BobSlot *pbs, const char *text, int textX, int t BobFrame *pbf = _vm->bankMan()->fetchFrame(pbs->frameNum); width = (pbf->width * pbs->scale) / 100; - height = (pbf->height * pbs->scale) / 100; + short height = (pbf->height * pbs->scale) / 100; y = y - height - 16 - lineCount * 9; } |