From 4ce7d9e583f39fd03ae483a0a0d925f28cb3157d Mon Sep 17 00:00:00 2001 From: Kelly Kinkade Date: Thu, 20 Aug 2026 20:00:40 -0500 Subject: [PATCH 1/2] fill out `viewport_spatter_flag` because someone has code that needs this... --- changelog.txt | 1 + df.descriptor.xml | 4 ---- df.g_src.graphics.xml | 20 +++++++++++++++++++- 3 files changed, 20 insertions(+), 5 deletions(-) diff --git a/changelog.txt b/changelog.txt index 5d3a1b54fd..de360d67b0 100644 --- a/changelog.txt +++ b/changelog.txt @@ -20,6 +20,7 @@ Template for new versions: ## Structures - added support for overriding code generation for a specific type +- added ``graphic_viewport_spatter_flag`` and related definitions # 53.16-r1 diff --git a/df.descriptor.xml b/df.descriptor.xml index 587962b5d4..f8d282d5bb 100644 --- a/df.descriptor.xml +++ b/df.descriptor.xml @@ -208,10 +208,6 @@ - TODO: defined in g_src/graphics.h - - - cannot use bitfield here, since it ignores base-type diff --git a/df.g_src.graphics.xml b/df.g_src.graphics.xml index 21bfb5de45..33d2263438 100644 --- a/df.g_src.graphics.xml +++ b/df.g_src.graphics.xml @@ -326,6 +326,24 @@ -- Skipped: VIEWPORT_FLOOR_FLAG_* -- Unused: VIEWPORT_WALL_FLAG_* -- Unused: GraphicsRampType + + bay12: GRAPHIC_VIEWPORT_FLAG_SPATTER_FIRE_FRAME_* + + + + + + + bay12: GRAPHIC_VIEWPORT_SPATTER_FLAG_* + + + + + + + + -- Skipped: VIEWPORT_RAMP_FLAG_* -- Skipped: VIEWPORT_SHADOW_FLAG_* @@ -349,7 +367,7 @@ VIEWPORT_FLOOR_FLAG_* VIEWPORT_LIQUID_FLAG_* - VIEWPORT_SPATTER_FLAG_* + VIEWPORT_SPATTER_FLAG_* VIEWPORT_RAMP_FLAG_* VIEWPORT_SHADOW_FLAG_* From 8927af47fa4fb1f9ec029854251c8071d478f2cb Mon Sep 17 00:00:00 2001 From: Kelly Kinkade Date: Fri, 21 Aug 2026 10:33:17 -0500 Subject: [PATCH 2/2] update based on review --- df.g_src.graphics.xml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/df.g_src.graphics.xml b/df.g_src.graphics.xml index 33d2263438..f9cf79d385 100644 --- a/df.g_src.graphics.xml +++ b/df.g_src.graphics.xml @@ -327,21 +327,21 @@ -- Unused: VIEWPORT_WALL_FLAG_* -- Unused: GraphicsRampType - bay12: GRAPHIC_VIEWPORT_FLAG_SPATTER_FIRE_FRAME_* + bay12: VIEWPORT_FLAG_SPATTER_FIRE_* - bay12: GRAPHIC_VIEWPORT_SPATTER_FLAG_* - - - + bay12: VIEWPORT_SPATTER_FLAG_* + + + - - + + -- Skipped: VIEWPORT_RAMP_FLAG_*