diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2020-05-27 14:58:02 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2020-05-27 14:58:02 +0200 |
commit | 359b557176b9bb2ff1aed2082641eed39c358d0d (patch) | |
tree | f6c2baca2e6a5d06b7bf32e48e475a6b7b1ea262 /app/bin/chotbar.c | |
parent | 9a1d6eded2750572e9f5f79e53ec507dd7a06ba5 (diff) |
New upstream version 5.1.2aupstream/5.1.2a
Diffstat (limited to 'app/bin/chotbar.c')
-rw-r--r-- | app/bin/chotbar.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |