From c2594ec4eaaf2e4d704d93ad8eea72a7d7287c07 Mon Sep 17 00:00:00 2001 From: nukeykt Date: Fri, 15 Nov 2019 01:32:31 +0900 Subject: [PATCH] Fix background box drawing in Query --- source/exhumed/src/exhumed.cpp | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/source/exhumed/src/exhumed.cpp b/source/exhumed/src/exhumed.cpp index c35c46dda..c86ac9870 100644 --- a/source/exhumed/src/exhumed.cpp +++ b/source/exhumed/src/exhumed.cpp @@ -3447,13 +3447,18 @@ int Query(short nLines, short nKeys, ...) int x1 = (320 - nWidth) / 2; int x2 = x1 + nWidth; - if (bHiRes) - { - x1 *= 2; - y1 *= 2; - nHeight *= 2; - x2 *= 2; - } + // if (bHiRes) + // { + // x1 *= 2; + // y1 *= 2; + // nHeight *= 2; + // x2 *= 2; + // } + + y1 = scale(y1, ydim, 200); + nHeight = scale(nHeight, ydim, 200); + x1 = scale(x1-160, ydim*4/3, 320)+xdim/2; + x2 = scale(x2-160, ydim*4/3, 320)+xdim/2; // draw background box that the text sits in for (i = 0; i < nHeight; i++) {