From 2ef3ef0bbcca323a07c591c00c019985a84f7caa Mon Sep 17 00:00:00 2001 From: MrTheShy Date: Sun, 3 May 2026 00:19:22 +0200 Subject: [PATCH] Add VIEWPORT_TYPE_GRID_CELL enum sentinel for N-player splitscreen The actual D3D viewport rect is pushed via StateSetViewportRect; this enum value is the per-pad sentinel that consumer code uses to mark players occupying a grid cell (5+ player splitscreen). Splits in two: viewport routing (sentinel) is separate from rect push. --- inc/4J_Render.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/inc/4J_Render.h b/inc/4J_Render.h index 50f1e0c..64cabd1 100644 --- a/inc/4J_Render.h +++ b/inc/4J_Render.h @@ -118,6 +118,12 @@ public: VIEWPORT_TYPE_QUADRANT_TOP_RIGHT, VIEWPORT_TYPE_QUADRANT_BOTTOM_LEFT, VIEWPORT_TYPE_QUADRANT_BOTTOM_RIGHT, + // N-player (5+) uses a parametric grid. The cell's (col, row, cols, rows) + // is stored per pad in Minecraft::s_playerCellCol/Row + s_playerGridCols/Rows. + // All N>4 split-screen players share this single enum value; lookups index + // the per-pad arrays by pad index. The actual D3D viewport rect must be + // pushed via StateSetViewportRect — never pass this enum to StateSetViewport. + VIEWPORT_TYPE_GRID_CELL, } eViewportType; typedef enum