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/intern/wm_subwindow.c | |
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/intern/wm_subwindow.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_subwindow.c | 13 |
1 files changed, 1 insertions, 12 deletions
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__ |