style cleanup
This commit is contained in:
@@ -4253,7 +4253,7 @@ static int ui_numedit_but_HISTOGRAM(uiBut *but, uiHandleButtonData *data, int mx
|
||||
|
||||
if (in_scope_resize_zone(but, data->dragstartx, data->dragstarty)) {
|
||||
/* resize histogram widget itself */
|
||||
hist->height = (BLI_rctf_size_y(&but->rect) + (data->dragstarty - my))/UI_DPI_FAC;
|
||||
hist->height = (BLI_rctf_size_y(&but->rect) + (data->dragstarty - my)) / UI_DPI_FAC;
|
||||
}
|
||||
else {
|
||||
/* scale histogram values (dy / 10 for better control) */
|
||||
@@ -4337,7 +4337,7 @@ static int ui_numedit_but_WAVEFORM(uiBut *but, uiHandleButtonData *data, int mx,
|
||||
|
||||
if (in_scope_resize_zone(but, data->dragstartx, data->dragstarty)) {
|
||||
/* resize waveform widget itself */
|
||||
scopes->wavefrm_height = (BLI_rctf_size_y(&but->rect) + (data->dragstarty - my))/UI_DPI_FAC;
|
||||
scopes->wavefrm_height = (BLI_rctf_size_y(&but->rect) + (data->dragstarty - my)) / UI_DPI_FAC;
|
||||
}
|
||||
else {
|
||||
/* scale waveform values */
|
||||
@@ -4419,7 +4419,7 @@ static int ui_numedit_but_VECTORSCOPE(uiBut *but, uiHandleButtonData *data, int
|
||||
|
||||
if (in_scope_resize_zone(but, data->dragstartx, data->dragstarty)) {
|
||||
/* resize vectorscope widget itself */
|
||||
scopes->vecscope_height = (BLI_rctf_size_y(&but->rect) + (data->dragstarty - my))/UI_DPI_FAC;
|
||||
scopes->vecscope_height = (BLI_rctf_size_y(&but->rect) + (data->dragstarty - my)) / UI_DPI_FAC;
|
||||
}
|
||||
|
||||
data->draglastx = mx;
|
||||
@@ -4622,7 +4622,7 @@ static int ui_numedit_but_TRACKPREVIEW(bContext *C, uiBut *but, uiHandleButtonDa
|
||||
|
||||
if (in_scope_resize_zone(but, data->dragstartx, data->dragstarty)) {
|
||||
/* resize preview widget itself */
|
||||
scopes->track_preview_height = (BLI_rctf_size_y(&but->rect) + (data->dragstarty - my))/UI_DPI_FAC;
|
||||
scopes->track_preview_height = (BLI_rctf_size_y(&but->rect) + (data->dragstarty - my)) / UI_DPI_FAC;
|
||||
}
|
||||
else {
|
||||
if (!scopes->track_locked) {
|
||||
|
||||
@@ -1967,11 +1967,11 @@ void ED_region_visible_rect(ARegion *ar, rcti *rect)
|
||||
if (BLI_rcti_isect(rect, &arn->winrct, NULL)) {
|
||||
|
||||
/* overlap left, also check 1 pixel offset (2 regions on one side) */
|
||||
if ( ABS(rect->xmin - arn->winrct.xmin) < 2)
|
||||
if (ABS(rect->xmin - arn->winrct.xmin) < 2)
|
||||
rect->xmin = arn->winrct.xmax;
|
||||
|
||||
/* overlap right */
|
||||
if ( ABS(rect->xmax - arn->winrct.xmax) < 2)
|
||||
if (ABS(rect->xmax - arn->winrct.xmax) < 2)
|
||||
rect->xmax = arn->winrct.xmin;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -407,7 +407,7 @@ void uiTemplateMarker(uiLayout *layout, PointerRNA *ptr, const char *propname, P
|
||||
if (track->flag & TRACK_LOCKED) {
|
||||
uiLayoutSetActive(layout, FALSE);
|
||||
block = uiLayoutAbsoluteBlock(layout);
|
||||
uiDefBut(block, LABEL, 0, IFACE_("Track is locked"), 0, 0, UI_UNIT_X*15.0f, UI_UNIT_Y, NULL, 0, 0, 0, 0, "");
|
||||
uiDefBut(block, LABEL, 0, IFACE_("Track is locked"), 0, 0, UI_UNIT_X * 15.0f, UI_UNIT_Y, NULL, 0, 0, 0, 0, "");
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -803,7 +803,7 @@ static opj_image_t *ibuftoimage(ImBuf *ibuf, opj_cparameters_t *parameters)
|
||||
|
||||
case 16:
|
||||
if (numcomps == 4) {
|
||||
if (channels_in_float == 4){
|
||||
if (channels_in_float == 4) {
|
||||
PIXEL_LOOPER_BEGIN(rect_float)
|
||||
{
|
||||
premul_to_straight_v4_v4(from_straight, rect_float);
|
||||
|
||||
Reference in New Issue
Block a user