diff options
-rw-r--r-- | engines/sci/engine/kgraphics.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp index 4c7d08c24e..27d4283dd4 100644 --- a/engines/sci/engine/kgraphics.cpp +++ b/engines/sci/engine/kgraphics.cpp @@ -427,11 +427,15 @@ reg_t kCelWide(EngineState *s, int argc, reg_t *argv) { celWidth = g_sci->_gfxCache->kernelViewGetCelWidth(viewId, loopNo, celNo); - if (getSciVersion() == SCI_VERSION_2_1) - celWidth = celWidth / 2; // half the width returned here, fixes lsl6 action icon placements +#ifdef ENABLE_SCI32 + if (getSciVersion() == SCI_VERSION_2_1) { + if (g_sci->_gfxScreen->getWidth() > 320) + celWidth = celWidth / 2; // half the width returned here, fixes lsl6 action icon placements + } // the scripts work low-res and add the returned value from here to the coordinate // TODO: check, if this is actually right. I'm slightly confused by this, but even GK1CD has some idivs in this // code, so it seems plausible. +#endif return make_reg(0, celWidth); } |