Fix #105257: Incorrect Search Region Size

Search list's region is having its size members (winx and winy) set
to values that are one pixel too small. This causes text to look bad
as they are slightly off their pixel alignment.

See #105308 for more details and an illustration of the issue.

Pull Request #105308
This commit is contained in:
2023-02-28 18:21:07 +01:00
committed by Harley Acheson
parent 8fbc80be8f
commit 9b67e883dd

View File

@@ -833,8 +833,8 @@ static void ui_searchbox_region_layout_fn(const struct bContext *C, struct ARegi
region->winrct.ymax = rect_i.ymax;
}
region->winx = region->winrct.xmax - region->winrct.xmin;
region->winy = region->winrct.ymax - region->winrct.ymin;
region->winx = region->winrct.xmax - region->winrct.xmin + 1;
region->winy = region->winrct.ymax - region->winrct.ymin + 1;
data->size_set = true;
}