Permalink
Browse files

C client: Fix clicking on hotbar in B menu not working. (Thanks Cheesse)

  • Loading branch information...
UnknownShadow200 committed Oct 12, 2018
1 parent 3a4b10d commit 8c91e51f323583d93f740964a84ca30456b77c55
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Widgets.c
View
@@ -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;

0 comments on commit 8c91e51

Please sign in to comment.