Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-09-10 07:34:17 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-09-10 07:38:09 +0400
commitad0790f14e06425bc0b47379e8ae432d6dbcf54f (patch)
tree50f73594ffeba14c4a4d298f60653f1132981b6d /source/blender/editors
parent1b94b3d49c83db16297bd445b19e7384084386d4 (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/editors')
-rw-r--r--source/blender/editors/interface/interface_regions.c2
-rw-r--r--source/blender/editors/screen/area.c2
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);