diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-10-29 02:35:05 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-10-29 02:35:05 +0300 |
commit | 02035c34b735990f3685950621eff24c25d0e91c (patch) | |
tree | 27b3120f668bcbe47965ccaae01de2a17666cd4f /source/blender/editors | |
parent | 26ed5452760a097d15f02d77df31a0bcfd6fd33f (diff) |
Cleanup: typo
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/interface/interface_align.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/editors/interface/interface_align.c b/source/blender/editors/interface/interface_align.c index ee66aeefb45..ee554822672 100644 --- a/source/blender/editors/interface/interface_align.c +++ b/source/blender/editors/interface/interface_align.c @@ -325,23 +325,23 @@ static void ui_block_align_but_to_region(uiBut *but, const ARegion *region) rctf *rect = &but->rect; const float but_width = BLI_rctf_size_x(rect); const float but_height = BLI_rctf_size_y(rect); - const float outline_with = U.pixelsize; /* This may have to be made more variable. */ + const float outline_px = U.pixelsize; /* This may have to be made more variable. */ switch (but->drawflag & UI_BUT_ALIGN) { case UI_BUT_ALIGN_TOP: - rect->ymax = region->winy + outline_with; + rect->ymax = region->winy + outline_px; rect->ymin = but->rect.ymax - but_height; break; case UI_BUT_ALIGN_DOWN: - rect->ymin = -outline_with; + rect->ymin = -outline_px; rect->ymax = rect->ymin + but_height; break; case UI_BUT_ALIGN_LEFT: - rect->xmin = -outline_with; + rect->xmin = -outline_px; rect->xmax = rect->xmin + but_width; break; case UI_BUT_ALIGN_RIGHT: - rect->xmax = region->winx + outline_with; + rect->xmax = region->winx + outline_px; rect->xmin = rect->xmax - but_width; break; default: |