From 732e3ef51f8227c177b16ffa487e2468a1d27362 Mon Sep 17 00:00:00 2001 From: Ian Curtis Date: Sat, 11 Mar 2017 12:55:47 +0000 Subject: [PATCH] More fixes to microtexture coordinates. They go vertically up and down the texture sheet, and not horizontally as I had guessed. (Thanks HarryTurtle) --- Src/Graphics/New3D/TextureSheet.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Src/Graphics/New3D/TextureSheet.cpp b/Src/Graphics/New3D/TextureSheet.cpp index 86b2778..4eca477 100644 --- a/Src/Graphics/New3D/TextureSheet.cpp +++ b/Src/Graphics/New3D/TextureSheet.cpp @@ -177,8 +177,8 @@ int TextureSheet::GetTexFormat(int originalFormat, bool contour) void TextureSheet::GetMicrotexPos(int basePage, int id, int& x, int& y) { - int xCoords[8] = { 0, 128, 0, 128, 0, 128, 0, 128 }; - int yCoords[8] = { 0, 0, 128, 128, 0, 0, 128, 128 }; + int xCoords[8] = { 0, 0, 128, 128, 0, 0, 128, 128 }; + int yCoords[8] = { 0, 128, 0, 128, 256, 384, 256, 384 }; // i'm assuming .. the micro texture map is always on the other memory bank to the base texture // this logic works for all our current games