From 742ac8f73a4a4c492cb7b6e2004d40b2b24fb4b8 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Thu, 6 Nov 2025 07:16:39 +1100 Subject: [PATCH] Try to fix inventory sprites sometimes being offset wrongly in Direct3D9 --- src/IsometricDrawer.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/IsometricDrawer.c b/src/IsometricDrawer.c index 4583fea31..775fc87e7 100644 --- a/src/IsometricDrawer.c +++ b/src/IsometricDrawer.c @@ -127,13 +127,8 @@ void IsometricDrawer_BeginBatch(struct VertexTextured* vertices, int* state) { void IsometricDrawer_AddBatch(BlockID block, float size, float x, float y) { if (Blocks.Draw[block] == DRAW_GAS) return; - + iso_posX = x; iso_posY = y; - /* See comment in Gfx_Make2DQuad() for why 0.5 is subtracted in D3D9 */ - /* TODO pass as arguments? test diff */ -#if CC_GFX_BACKEND == CC_GFX_BACKEND_D3D9 - iso_posX -= 0.5f; iso_posY -= 0.5f; -#endif if (Blocks.Draw[block] == DRAW_SPRITE) { IsometricDrawer_Flat(block, size);