From 4d9b019b18e66f58a7cd88348dfbcd6bf6d93c79 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Fri, 7 Apr 2017 13:33:28 -0500 Subject: SCI32: Activate SCI3 draw/erase list calculation algorithm This code branch, existing since at least SQ6 but apparently never used by any SCI2/2.1 game, is in fact the algorithm used by SCI3. This fixes (at least) doubled rendering of transparent surfaces like the background of the inventory window and conversation choices panel in LSL7. --- engines/sci/graphics/plane32.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/engines/sci/graphics/plane32.cpp b/engines/sci/graphics/plane32.cpp index aa8cd52d42..a8724dee67 100644 --- a/engines/sci/graphics/plane32.cpp +++ b/engines/sci/graphics/plane32.cpp @@ -435,8 +435,7 @@ void Plane::calcLists(Plane &visiblePlane, const PlaneList &planeList, DrawList DrawList::size_type drawListSizePrimary = drawList.size(); const RectList::size_type eraseListCount = eraseList.size(); - // TODO: Figure out which games need which rendering method - if (/* TODO: dword_C6288 */ false) { // "high resolution pictures" + if (getSciVersion() == SCI_VERSION_3) { _screenItemList.sort(); bool pictureDrawn = false; bool screenItemDrawn = false; -- cgit v1.2.3