Skip to content

Commit

Permalink
Toolbar: take into account microphone button in "narrow mode"
Browse files Browse the repository at this point in the history
  • Loading branch information
rexim committed Feb 28, 2024
1 parent f319d93 commit 4a10f33
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/plug.c
Original file line number Diff line number Diff line change
Expand Up @@ -1304,7 +1304,13 @@ static bool toolbar(Track *track, Rectangle boundary)
bool interacted = false;
int state = 0;

if (boundary.width < HUD_BUTTON_SIZE*4) return interacted;
#ifdef MUSIALIZER_MICROPHONE
size_t buttons_count = 5;
#else
size_t buttons_count = 4;
#endif // MUSIALIZER_MICROPHONE

if (boundary.width < HUD_BUTTON_SIZE*buttons_count) return interacted;

DrawRectangleRec(boundary, COLOR_TRACK_PANEL_BACKGROUND);

Expand Down

0 comments on commit 4a10f33

Please sign in to comment.