Fix: UI: Scale list item highlight with zoom
Fix the row highlight in list views not scaling properly by taking the zoom into account. Pull Request: https://projects.blender.org/blender/blender/pulls/113645
This commit is contained in:
committed by
Julian Eisel
parent
7705e49bcd
commit
7017a9880e
@@ -4200,10 +4200,10 @@ static void widget_list_itembut(uiBut *but,
|
||||
if (but->type == UI_BTYPE_VIEW_ITEM) {
|
||||
uiButViewItem *item_but = static_cast<uiButViewItem *>(but);
|
||||
if (item_but->draw_width > 0) {
|
||||
BLI_rcti_resize_x(&draw_rect, item_but->draw_width);
|
||||
BLI_rcti_resize_x(&draw_rect, zoom * item_but->draw_width);
|
||||
}
|
||||
if (item_but->draw_height > 0) {
|
||||
BLI_rcti_resize_y(&draw_rect, item_but->draw_height);
|
||||
BLI_rcti_resize_y(&draw_rect, zoom * item_but->draw_height);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user