diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-09-10 07:34:17 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-09-10 07:38:09 +0400 |
commit | ad0790f14e06425bc0b47379e8ae432d6dbcf54f (patch) | |
tree | 50f73594ffeba14c4a4d298f60653f1132981b6d /source/blender | |
parent | 1b94b3d49c83db16297bd445b19e7384084386d4 (diff) |
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)
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/interface/interface_regions.c | 2 | ||||
-rw-r--r-- | source/blender/editors/screen/area.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface_regions.c b/source/blender/editors/interface/interface_regions.c index efcbc2ab4d5..2af1f5c3322 100644 --- a/source/blender/editors/interface/interface_regions.c +++ b/source/blender/editors/interface/interface_regions.c @@ -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); diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c index 739e7be7328..752f388c338 100644 --- a/source/blender/editors/screen/area.c +++ b/source/blender/editors/screen/area.c @@ -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); |