From 96c25394fdee02ebafab55e9036f0fc3fc81365b Mon Sep 17 00:00:00 2001 From: ricardoofnl Date: Wed, 2 Sep 2026 06:57:12 +0700 Subject: [PATCH] [saco] Implement/match `CDXUTIMEEditBox::PumpMessage` --- saco/d3d9/common/DXUTgui.cpp | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/saco/d3d9/common/DXUTgui.cpp b/saco/d3d9/common/DXUTgui.cpp index 274ba1a..ba6f052 100644 --- a/saco/d3d9/common/DXUTgui.cpp +++ b/saco/d3d9/common/DXUTgui.cpp @@ -6175,6 +6175,25 @@ void CDXUTIMEEditBox::FinalizeString( bool bSend ) bProcessing = false; } +//-------------------------------------------------------------------------------------- +// nothing calls this in retail either +void CDXUTIMEEditBox::PumpMessage() +{ + MSG msg; + + while( PeekMessageW( &msg, NULL, 0, 0, PM_NOREMOVE ) ) + { + if( !GetMessageW( &msg, NULL, 0, 0 ) ) + { + PostQuitMessage( msg.wParam ); + return; + } + + TranslateMessage( &msg ); + DispatchMessage( &msg ); + } +} + //-------------------------------------------------------------------------------------- // Determine whether the reading window should be vertical or horizontal. @@ -7683,7 +7702,6 @@ void CDXUTIMEEditBox::Uninitialize() } } - //-------------------------------------------------------------------------------------- // MATCH void DXUTBlendColor::Init( D3DCOLOR defaultColor, D3DCOLOR disabledColor, D3DCOLOR hiddenColor )