summaryrefslogtreecommitdiff
path: root/app/bin/chotbar.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2020-06-01 17:08:47 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2020-06-01 17:08:47 +0200
commitd0b6a8a4ec298024f14f704f9e40a6f9d324ccf3 (patch)
tree8645f5abd7b89361a1c5ab67e0195c84bc2ceab0 /app/bin/chotbar.c
parentc2b8ba9336499ac930802e957f0d150399f3191e (diff)
parentabf57604846230dc26afe8011aefb8e7bcc34333 (diff)
Merge debian/watchdebian/1_5.1.2a-1
Diffstat (limited to 'app/bin/chotbar.c')
-rw-r--r--app/bin/chotbar.c6
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;
}