Fix: Improve Blurry Text 3DView Drag Name
Like #128623 this improved the blurry text shown when dragging an object into a 3DView. Pull Request: https://projects.blender.org/blender/blender/pulls/128809
This commit is contained in:
committed by
Harley Acheson
parent
8dfcd7cf70
commit
cb26e5a169
@@ -1060,11 +1060,13 @@ static void wm_drag_draw_item_name(wmDrag *drag, const int x, const int y)
|
||||
UI_fontstyle_draw_simple(fstyle, x, y, WM_drag_get_item_name(drag), text_col);
|
||||
}
|
||||
|
||||
void WM_drag_draw_item_name_fn(bContext * /*C*/, wmWindow * /*win*/, wmDrag *drag, const int xy[2])
|
||||
void WM_drag_draw_item_name_fn(bContext * /*C*/, wmWindow *win, wmDrag *drag, const int xy[2])
|
||||
{
|
||||
int x = xy[0] + 10 * UI_SCALE_FAC;
|
||||
int y = xy[1] + 1 * UI_SCALE_FAC;
|
||||
|
||||
/* Needs zero offset here or it looks blurry. #128112. */
|
||||
wmWindowViewport_ex(win, 0.0f);
|
||||
wm_drag_draw_item_name(drag, x, y);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user