From b41014353a334fc0e924ef38cbd49c9574a6b7d9 Mon Sep 17 00:00:00 2001 From: ricardoofnl Date: Sun, 30 Aug 2026 16:52:55 +0700 Subject: [PATCH] [saco] Fix the `CDXUTListBox` and `DXUTListBoxItem` member layout --- saco/d3d9/common/DXUTgui.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/saco/d3d9/common/DXUTgui.h b/saco/d3d9/common/DXUTgui.h index 4cb5745..6c7d18a 100644 --- a/saco/d3d9/common/DXUTgui.h +++ b/saco/d3d9/common/DXUTgui.h @@ -594,11 +594,15 @@ protected: //----------------------------------------------------------------------------- struct DXUTListBoxItem { - TCHAR strText[256]; + TCHAR strText[257]; + TCHAR strColumnText[3][129]; void* pData; RECT rcActive; bool bSelected; + + D3DCOLOR TextColor; + bool field_29D; }; class CDXUTListBox : public CDXUTControl @@ -640,9 +644,9 @@ public: int field_59; protected: + CDXUTScrollBar m_ScrollBar; RECT m_rcText; // Text rendering bound RECT m_rcSelection; // Selection box bound - CDXUTScrollBar m_ScrollBar; int m_nSBWidth; int m_nBorder; int m_nMargin;