From 359b557176b9bb2ff1aed2082641eed39c358d0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Wed, 27 May 2020 14:58:02 +0200 Subject: New upstream version 5.1.2a --- app/bin/chotbar.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/bin/chotbar.c') diff --git a/app/bin/chotbar.c b/app/bin/chotbar.c index 188ad27..31a19ad 100644 --- a/app/bin/chotbar.c +++ b/app/bin/chotbar.c @@ -439,7 +439,7 @@ EXPORT void InitHotBar( void ) hotBarML = wMenuListCreate( hotbarPopupM, "", -1, HotbarJump ); } -EXPORT void LayoutHotBar( void ) +EXPORT void LayoutHotBar( void * redraw ) { wPos_t buttonWidth, winWidth, winHeight; BOOL_T initialize = FALSE; @@ -466,7 +466,7 @@ EXPORT void LayoutHotBar( void ) wControlSetPos( (wControl_p)hotBarLeftB, 0, toolbarHeight ); wControlSetPos( (wControl_p)hotBarRightB, winWidth-20-buttonWidth, toolbarHeight ); wControlSetPos( (wControl_p)hotBarD.d, buttonWidth, toolbarHeight ); - wDrawSetSize( hotBarD.d, winWidth-20-buttonWidth*2, hotBarHeight+2 ); + wDrawSetSize( hotBarD.d, winWidth-20-buttonWidth*2, hotBarHeight+2, redraw ); hotBarD.size.x = ((double)(winWidth-20-buttonWidth*2))/hotBarD.dpi*hotBarD.scale; hotBarD.size.y = (double)hotBarDrawHeight/hotBarD.dpi*hotBarD.scale; //Exclude Label from calc wControlShow( (wControl_p)hotBarLeftB, TRUE ); @@ -474,7 +474,7 @@ EXPORT void LayoutHotBar( void ) wControlShow( (wControl_p)hotBarD.d, TRUE ); if (initialize) ChangeHotBar( CHANGE_PARAMS ); - else + else if (!redraw) RedrawHotBar( NULL, NULL, 0, 0 ); toolbarHeight += hotBarHeight+3; } -- cgit v1.2.3