From 98c064dcbc70e33b1ad3c05c8ae34b9a97914d46 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 21 Aug 2020 00:13:05 +0200 Subject: [PATCH] - fixed the missing plasma effect in Exhumed's title screen. --- source/common/textures/gametexture.h | 1 + source/exhumed/src/menu.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/source/common/textures/gametexture.h b/source/common/textures/gametexture.h index db2153de9..ec013b3d5 100644 --- a/source/common/textures/gametexture.h +++ b/source/common/textures/gametexture.h @@ -239,6 +239,7 @@ public: TexelWidth = x; TexelHeight = y; SetDisplaySize(float(x), float(y)); + GetTexture()->SetSize(x, y); } void SetDisplaySize(float w, float h) { diff --git a/source/exhumed/src/menu.cpp b/source/exhumed/src/menu.cpp index 0f48e9b88..3d2f10e9f 100644 --- a/source/exhumed/src/menu.cpp +++ b/source/exhumed/src/menu.cpp @@ -349,9 +349,9 @@ void menu_DoPlasma() twod->ClearScreen(); - uint8_t* plasmapix = const_cast(tilePtr(nPlasmaTile)); + uint8_t* plasmapix = tileData(nPlasmaTile); uint8_t* r_ebx = plasmapix + 81; - const uint8_t* r_edx = tilePtr(nPlasmaTile ^ 1) + 81; // flip between value of 4092 and 4093 with xor + const uint8_t* r_edx = tileData(nPlasmaTile ^ 1) + 81; // flip between value of 4092 and 4093 with xor for (int x = 0; x < kPlasmaWidth - 2; x++) // for (int x = 1; x < 318; x++)