mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-19 04:26:52 -04:00
C client: Fix clicking on hotbar in B menu not working. (Thanks Cheesse)
This commit is contained in:
parent
3a4b10d60e
commit
8c91e51f32
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user