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-04-02 10:33:20 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-04-02 10:33:20 +0400
commit442f2df736190b39e8f817832b0ce4a0520b6a22 (patch)
tree4f828caf25b86ccd28a281350abdb998d78929f0 /source/blender/editors/interface/interface.c
parent1d9e0c373d830daccba40fbb35046005cb84b463 (diff)
Code cleanup: avoid redundant lookups for subwindows
Diffstat (limited to 'source/blender/editors/interface/interface.c')
-rw-r--r--source/blender/editors/interface/interface.c8
1 files changed, 4 insertions, 4 deletions
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;