Partial fix for T41749
Tool-tips and header-text used a different pixel alignment from the rest of the UI. This causes blurry text with multi-sample with NVidia. Other text still needs the issue resolved (View3d info for eg)
This commit is contained in:
parent
1b94b3d49c
commit
ad0790f14e
@ -222,6 +222,8 @@ static void ui_tooltip_region_draw_cb(const bContext *UNUSED(C), ARegion *ar)
|
||||
if (multisample_enabled)
|
||||
glDisable(GL_MULTISAMPLE_ARB);
|
||||
|
||||
wmOrtho2_region_ui(ar);
|
||||
|
||||
/* draw background */
|
||||
ui_draw_tooltip_background(UI_GetStyle(), NULL, &bbox);
|
||||
|
||||
|
@ -418,6 +418,8 @@ void ED_region_do_draw(bContext *C, ARegion *ar)
|
||||
|
||||
/* note; this sets state, so we can use wmOrtho and friends */
|
||||
wmSubWindowScissorSet(win, ar->swinid, &ar->drawrct, scissor_pad);
|
||||
|
||||
wmOrtho2_region_ui(ar);
|
||||
|
||||
UI_SetTheme(sa ? sa->spacetype : 0, at->regionid);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user