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:
Campbell Barton 2014-09-10 13:34:17 +10:00
parent 1b94b3d49c
commit ad0790f14e
Notes: blender-bot 2023-02-14 10:07:07 +01:00
Referenced by issue #41749, Multi-sample makes (some) text blurry (NVidia)
2 changed files with 4 additions and 0 deletions

View File

@ -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);

View File

@ -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);