diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-11-04 02:08:55 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-11-04 02:10:00 +0300 |
commit | bc870f17a7fbcf52e86306932c97058ca8bb6f21 (patch) | |
tree | 4176ccf09924d000640ef415417f138a724bf24f /source/blender/editors/interface/interface_draw.c | |
parent | 771b9c8010d47e79a1f3cde9e25ecd5f275c3fa4 (diff) |
Cleanup: style, shadow warning
Diffstat (limited to 'source/blender/editors/interface/interface_draw.c')
-rw-r--r-- | source/blender/editors/interface/interface_draw.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/interface/interface_draw.c b/source/blender/editors/interface/interface_draw.c index d696dbd0d88..68058292c44 100644 --- a/source/blender/editors/interface/interface_draw.c +++ b/source/blender/editors/interface/interface_draw.c @@ -1795,7 +1795,7 @@ void ui_draw_but_CURVE(ARegion *ar, uiBut *but, uiWidgetColors *wcol, const rcti /* curve */ for (int a = 0; a <= CM_TABLE; a++) { fx = rect->xmin + zoomx * (cmp[a].x - offsx); - fy = rect->ymin + zoomy * (cmp[a].y - offsy); + fy = rect->ymin + zoomy * (cmp[a].y - offsy); immVertex2f(pos, fx, rect->ymin); immVertex2f(pos, fx, fy); } @@ -1831,8 +1831,8 @@ void ui_draw_but_CURVE(ARegion *ar, uiBut *but, uiWidgetColors *wcol, const rcti UI_GetThemeColor4fv(TH_TEXT_HI, color); else UI_GetThemeColor4fv(TH_TEXT, color); - float fx = rect->xmin + zoomx * (cmp[a].x - offsx); - float fy = rect->ymin + zoomy * (cmp[a].y - offsy); + fx = rect->xmin + zoomx * (cmp[a].x - offsx); + fy = rect->ymin + zoomy * (cmp[a].y - offsy); immAttr4fv(col, color); immVertex2f(pos, fx, fy); } |