diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2020-05-27 14:58:13 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2020-05-27 14:58:13 +0200 |
commit | 265d6934cd70a60228e7a11cfc000aff73dd4701 (patch) | |
tree | 610eb753fea70e7f407e751e22697fc8a1ec04bd /app/bin/chotbar.c | |
parent | bd8c21a35fd05fcbdaa95e4c0b7c94c3b97507b6 (diff) | |
parent | 359b557176b9bb2ff1aed2082641eed39c358d0d (diff) |
Update upstream source from tag 'upstream/5.1.2a'
Update to upstream version '5.1.2a'
with Debian dir 4d0d8239e41bb5de5dc968c2a5c6eb9c140bb2f3
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; } |