diff --git a/Utils/Animated ProgressBar.cpp b/Utils/Animated ProgressBar.cpp index 025bbc21..aa371f23 100644 --- a/Utils/Animated ProgressBar.cpp +++ b/Utils/Animated ProgressBar.cpp @@ -14,6 +14,7 @@ #include "sysutil.h" #include "random.h" #include "math.h" + #include "WordWrap.h" #endif double rStart, rEnd; @@ -329,15 +330,14 @@ void SetRelativeStartAndEndPercentage( UINT8 ubID, UINT16 uiRelStartPerc, UINT16 SetFontShadow( pCurr->ubMsgFontShadowColor ); SetFontBackground( 0 ); mprintf( pCurr->usBarLeft, pCurr->usBarBottom + 3, str ); - - // Flugente: loadscreen hints - if ( usCurrentLoadScreenHint ) - { - gprintfinvalidate( pCurr->usBarLeft, pCurr->usBarBottom + 3 - 200, L"%s", zLoadScreenHint[usCurrentLoadScreenHint].szName ); - mprintf( pCurr->usBarLeft, pCurr->usBarBottom + 3 - 200, L"%s", zLoadScreenHint[usCurrentLoadScreenHint].szName ); - } } } + + // Flugente: loadscreen hints + if (gGameExternalOptions.gfUseLoadScreenHints && usCurrentLoadScreenHint ) + { + DrawTextToScreen( zLoadScreenHint[usCurrentLoadScreenHint].szName, 1, pCurr->usBarBottom + 3 - 200, SCREEN_WIDTH - 1, FONT12ARIAL, FONT_MCOLOR_WHITE, 0, FALSE, INVALIDATE_TEXT | CENTER_JUSTIFIED ); + } } //This part renders the progress bar at the percentage level that you specify. If you have set relative