From 442f2df736190b39e8f817832b0ce4a0520b6a22 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 2 Apr 2014 17:33:20 +1100 Subject: Code cleanup: avoid redundant lookups for subwindows --- source/blender/editors/interface/interface.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/blender/editors/interface/interface.c') diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c index e6d5703f5b5..530f529f345 100644 --- a/source/blender/editors/interface/interface.c +++ b/source/blender/editors/interface/interface.c @@ -2430,8 +2430,8 @@ uiBlock *uiBeginBlock(const bContext *C, ARegion *region, const char *name, shor /* window matrix and aspect */ if (region && region->swinid) { - wm_subwindow_getmatrix(window, region->swinid, block->winmat); - wm_subwindow_getsize(window, region->swinid, &getsizex, &getsizey); + wm_subwindow_matrix_get(window, region->swinid, block->winmat); + wm_subwindow_size_get(window, region->swinid, &getsizex, &getsizey); block->aspect = 2.0f / fabsf(getsizex * block->winmat[0][0]); } @@ -2439,8 +2439,8 @@ uiBlock *uiBeginBlock(const bContext *C, ARegion *region, const char *name, shor /* no subwindow created yet, for menus for example, so we * use the main window instead, since buttons are created * there anyway */ - wm_subwindow_getmatrix(window, window->screen->mainwin, block->winmat); - wm_subwindow_getsize(window, window->screen->mainwin, &getsizex, &getsizey); + wm_subwindow_matrix_get(window, window->screen->mainwin, block->winmat); + wm_subwindow_size_get(window, window->screen->mainwin, &getsizex, &getsizey); block->aspect = 2.0f / fabsf(getsizex * block->winmat[0][0]); block->auto_open = true; -- cgit v1.2.3