Cleanup: More meaningful variable name

This commit is contained in:
Severin 2018-10-27 17:12:51 +02:00
parent 7e3e26d00a
commit 3bc8bc0709
Notes: blender-bot 2023-02-14 06:32:27 +01:00
Referenced by issue #57457, Video texture / Image Sequence not refreshing under eevee
1 changed files with 5 additions and 5 deletions

View File

@ -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 px = U.pixelsize;
const float outline_with = 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 + px;
rect->ymax = region->winy + outline_with;
rect->ymin = but->rect.ymax - but_height;
break;
case UI_BUT_ALIGN_DOWN:
rect->ymin = -px;
rect->ymin = -outline_with;
rect->ymax = rect->ymin + but_height;
break;
case UI_BUT_ALIGN_LEFT:
rect->xmin = -px;
rect->xmin = -outline_with;
rect->xmax = rect->xmin + but_width;
break;
case UI_BUT_ALIGN_RIGHT:
rect->xmax = region->winx + px;
rect->xmax = region->winx + outline_with;
rect->xmin = rect->xmax - but_width;
break;
default: