Skip to content

Commit 2c50526

Browse files
committed
Merge pull request #16 from steve2072/patch-1
Update context.py
2 parents 3582c22 + 46d86cc commit 2c50526

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nodebox/graphics/context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ def rect(x, y, width, height, **kwargs):
587587
fill, stroke, strokewidth, strokestyle = color_mixin(**kwargs)
588588
if fill is not None:
589589
glColor4f(fill[0], fill[1], fill[2], fill[3] * _alpha)
590-
glRectf(x, y, x+width, y+width)
590+
glRectf(x, y, x+width, y+height)
591591

592592
if stroke is not None and strokewidth > 0:
593593
glLineWidth(strokewidth)

0 commit comments

Comments
 (0)