Skip to content

Commit

Permalink
C client: Fix clicking on hotbar in B menu not working. (Thanks Cheesse)
Browse files Browse the repository at this point in the history
  • Loading branch information
UnknownShadow200 committed Oct 12, 2018
1 parent 3a4b10d commit 8c91e51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Widgets.c
Expand Up @@ -435,7 +435,7 @@ static bool HotbarWidget_MouseDown(void* widget, int x, int y, MouseButton btn)
struct Screen* screen = Gui_GetActiveScreen();
if (screen != InventoryScreen_UNSAFE_RawPointer) return false;

int width = (int)(w->ElemSize * w->BorderSize);
int width = (int)(w->ElemSize + w->BorderSize);
int height = Math_Ceil(w->BarHeight);
int i;

Expand Down

0 comments on commit 8c91e51

Please sign in to comment.