diff --git a/engines/sci/graphics/frameout.cpp b/engines/sci/graphics/frameout.cpp
index 76510fa..fd1d4b0 100644
a
|
b
|
void GfxFrameout::kernelFrameout() {
|
773 | 773 | if (view && view->isSci2Hires()) { |
774 | 774 | view->adjustBackUpscaledCoordinates(nsRect.top, nsRect.left); |
775 | 775 | view->adjustBackUpscaledCoordinates(nsRect.bottom, nsRect.right); |
776 | | g_sci->_gfxCompare->setNSRect(itemEntry->object, nsRect); |
777 | 776 | } else if (getSciVersion() >= SCI_VERSION_2_1 && _resMan->detectHires()) { |
778 | 777 | _coordAdjuster->fromDisplayToScript(nsRect.top, nsRect.left); |
779 | 778 | _coordAdjuster->fromDisplayToScript(nsRect.bottom, nsRect.right); |
780 | | g_sci->_gfxCompare->setNSRect(itemEntry->object, nsRect); |
781 | 779 | } |
782 | 780 | |
783 | 781 | // TODO: For some reason, the top left nsRect coordinates get |
784 | 782 | // swapped in the GK1 inventory screen, investigate why. |
785 | 783 | // HACK: Fix the coordinates by explicitly setting them here. |
786 | | Common::Rect objNSRect = g_sci->_gfxCompare->getNSRect(itemEntry->object); |
787 | | if (objNSRect.top == nsRect.left && objNSRect.left == nsRect.top && nsRect.top != 0 && nsRect.left != 0) { |
788 | | g_sci->_gfxCompare->setNSRect(itemEntry->object, nsRect); |
789 | | } |
| 784 | // Actually nsRects get messed up in all kinds of ways in GK1. |
| 785 | // So just always set it from the cel. |
| 786 | |
| 787 | g_sci->_gfxCompare->setNSRect(itemEntry->object, nsRect); |
790 | 788 | } |
791 | 789 | |
792 | 790 | // Don't attempt to draw sprites that are outside the visible |