Fix #77696: Intermittent Fuzzy File Browser Text
Clamp the File Browser main region v2d->cur.ymin and .ymax to integers to avoid bad text display in the file listing when they are subpixel. Pull Request: https://projects.blender.org/blender/blender/pulls/123162
This commit is contained in:
committed by
Harley Acheson
parent
90f09f016e
commit
2b8da99e59
@@ -433,6 +433,10 @@ static void file_main_region_init(wmWindowManager *wm, ARegion *region)
|
||||
|
||||
UI_view2d_region_reinit(®ion->v2d, V2D_COMMONVIEW_LIST, region->winx, region->winy);
|
||||
|
||||
/* Truncate, otherwise these can be on ".5" and give fuzzy text. #77696. */
|
||||
region->v2d.cur.ymin = trunc(region->v2d.cur.ymin);
|
||||
region->v2d.cur.ymax = trunc(region->v2d.cur.ymax);
|
||||
|
||||
/* own keymaps */
|
||||
keymap = WM_keymap_ensure(wm->defaultconf, "File Browser", SPACE_FILE, RGN_TYPE_WINDOW);
|
||||
WM_event_add_keymap_handler_v2d_mask(®ion->handlers, keymap);
|
||||
|
||||
Reference in New Issue
Block a user