mirror of
https://github.com/aseprite/aseprite.git
synced 2024-11-20 14:21:45 +00:00
Fixed buttons in toolbar for jguiscale > 1.
This commit is contained in:
parent
af8535d612
commit
952a2aac4d
@ -356,14 +356,15 @@ Rect ToolBar::getToolGroupBounds(int group_index)
|
||||
|
||||
if (group_index >= 0)
|
||||
return Rect(rc->x1+border_width.l,
|
||||
rc->y1+border_width.t+group_index*(iconsize.h-1),
|
||||
rc->y1+border_width.t+group_index*(iconsize.h-1*jguiscale()),
|
||||
jrect_w(rc)-border_width.l-border_width.r,
|
||||
group_index < groups-1 ? iconsize.h+1: iconsize.h+2);
|
||||
group_index < groups-1 ? iconsize.h+1*jguiscale():
|
||||
iconsize.h+2*jguiscale());
|
||||
else
|
||||
return Rect(rc->x1+border_width.l,
|
||||
rc->y1+border_width.t+groups*(iconsize.h-1)+ 8*jguiscale(),
|
||||
rc->y1+border_width.t+groups*(iconsize.h-1*jguiscale())+ 8*jguiscale(),
|
||||
jrect_w(rc)-border_width.l-border_width.r,
|
||||
iconsize.h+2);
|
||||
iconsize.h+2*jguiscale());
|
||||
}
|
||||
|
||||
void ToolBar::onToolSelected(Tool* tool)
|
||||
|
Loading…
Reference in New Issue
Block a user