summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCate <cate@cate-6sh2.(none)>2011-07-12 15:46:07 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-07-12 17:47:56 (GMT)
commit4efa60009ea9dae17e65bb2a5287d682066fb773 (patch)
treeff1df4d9506a2159e98b2129837761fbdbed9ae8 /src
parentd3452b01c8aad35e6d55523323247eeb114dc7d1 (diff)
downloadpowder-4efa60009ea9dae17e65bb2a5287d682066fb773.zip
powder-4efa60009ea9dae17e65bb2a5287d682066fb773.tar.gz
Some letters changed and formatting fixed. n_n
Diffstat (limited to 'src')
-rw-r--r--src/graphics.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/graphics.c b/src/graphics.c
index 40f57c1..3f36097 100644
--- a/src/graphics.c
+++ b/src/graphics.c
@@ -4249,14 +4249,13 @@ void render_cursor(pixel *vid, int x, int y, int t, int rx, int ry)
else if (CURRENT_BRUSH==TRI_BRUSH)
{
for (j=-ry; j<=ry; j++)
- for (i=-rx; i<=0; i++)
- if ((j <= ry ) && ( j >= (((-2.0*ry)/(rx))*i)-ry ) && (j+1>ry || ( j-1 < (((-2.0*ry)/(rx))*i)-ry )) )
- {
- xor_pixel(x+i, y+j, vid);
- if (i) xor_pixel(x-i, y+j, vid);
- }
+ for (i=-rx; i<=0; i++)
+ if ((j <= ry ) && ( j >= (((-2.0*ry)/(rx))*i)-ry ) && (j+1>ry || ( j-1 < (((-2.0*ry)/(rx))*i)-ry )) )
+ {
+ xor_pixel(x+i, y+j, vid);
+ if (i) xor_pixel(x-i, y+j, vid);
+ }
}
-
}
else //wall cursor
{