diff options
author | Julian Eisel <eiseljulian@gmail.com> | 2016-02-29 17:20:09 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2016-02-29 17:20:09 +0300 |
commit | 49ba9740b8ed55eca742a43b36a47d6b55cb207d (patch) | |
tree | dc1f03a75e0b5ebff050e8d64340971e96834ac1 /source/blender/windowmanager | |
parent | 94349ab308d2c534b51d370a6c62fd1992c6d1e2 (diff) |
Cleanup: Duplicated function
wmOrtho2_region_pixelspace and wmOrtho2_region_ui were doing exact same thing since rBSa86482f81cf3.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r-- | source/blender/windowmanager/WM_api.h | 1 | ||||
-rw-r--r-- | source/blender/windowmanager/intern/wm_subwindow.c | 13 |
2 files changed, 1 insertions, 13 deletions
diff --git a/source/blender/windowmanager/WM_api.h b/source/blender/windowmanager/WM_api.h index 0acd18126d9..58ce7aa346d 100644 --- a/source/blender/windowmanager/WM_api.h +++ b/source/blender/windowmanager/WM_api.h @@ -409,7 +409,6 @@ void wmOrtho (float x1, float x2, float y1, float y2, float n, float f); void wmOrtho2 (float x1, float x2, float y1, float y2); /* use for conventions (avoid hard-coded offsets all over) */ void wmOrtho2_region_pixelspace(const struct ARegion *ar); -void wmOrtho2_region_ui(const struct ARegion *ar); void wmOrtho2_pixelspace(const float x, const float y); /* utilities */ diff --git a/source/blender/windowmanager/intern/wm_subwindow.c b/source/blender/windowmanager/intern/wm_subwindow.c index a0279e56ba1..243f7467f25 100644 --- a/source/blender/windowmanager/intern/wm_subwindow.c +++ b/source/blender/windowmanager/intern/wm_subwindow.c @@ -367,7 +367,7 @@ static void wmOrtho2_offset(const float x, const float y, const float ofs) /** * default pixel alignment. */ -void wmOrtho2_region_pixelspace(const struct ARegion *ar) +void wmOrtho2_region_pixelspace(const ARegion *ar) { wmOrtho2_offset(ar->winx, ar->winy, -0.01f); } @@ -377,17 +377,6 @@ void wmOrtho2_pixelspace(const float x, const float y) wmOrtho2_offset(x, y, -GLA_PIXEL_OFS); } -/** - * use for drawing uiBlock, any UI elements and text. - * \note prevents blurry text with multi-sample (FSAA), see T41749 - */ -void wmOrtho2_region_ui(const ARegion *ar) -{ - /* note, intentionally no '+ 1', - * as with wmOrtho2_region_pixelspace */ - wmOrtho2_offset(ar->winx, ar->winy, -0.01f); -} - /* *************************** Framebuffer color depth, for selection codes ********************** */ #ifdef __APPLE__ |