From dca93a406d204bea6b356b954cf7b908dc097cb0 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 19 Apr 2013 21:04:08 +0200 Subject: [PATCH] (360) Improve menu_iterate_xui --- frontend/menu/rmenu_xui.cpp | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/frontend/menu/rmenu_xui.cpp b/frontend/menu/rmenu_xui.cpp index 7c842bbb74..6ab3a9a77d 100644 --- a/frontend/menu/rmenu_xui.cpp +++ b/frontend/menu/rmenu_xui.cpp @@ -1369,7 +1369,6 @@ bool menu_iterate(void) { case INPUT_LOOP_FILEBROWSER: case INPUT_LOOP_MENU: - app.RunFrame(); /* Update XUI */ if((state.Gamepad.wButtons & XINPUT_GAMEPAD_B) && hCur != app.hMainScene) { XuiSceneNavigateBack(hCur, app.hMainScene, XUSER_INDEX_ANY); @@ -1406,7 +1405,21 @@ deinit: bool menu_iterate_xui(void) { - app.Render(); + app.RunFrame(); /* Update XUI */ + + XuiRenderBegin( app.GetDC(), D3DCOLOR_ARGB( 255, 0, 0, 0 ) ); + + D3DXMATRIX matOrigView; + XuiRenderGetViewTransform( app.GetDC(), &matOrigView ); + + XUIMessage msg; + XUIMessageRender msgRender; + XuiMessageRender( &msg, &msgRender, app.GetDC(), 0xffffffff, XUI_BLEND_NORMAL ); + XuiSendMessage( app.GetRootObj(), &msg ); + + XuiRenderSetViewTransform( app.GetDC(), &matOrigView ); + + XuiRenderEnd( app.GetDC() ); XuiTimersRun(); return true; }