diff options
author | Andreas Rumpf <andreas@andreas-desktop> | 2010-03-04 23:42:19 +0100 |
---|---|---|
committer | Andreas Rumpf <andreas@andreas-desktop> | 2010-03-04 23:42:19 +0100 |
commit | f45a2f23b04aa1d37b482ba3d07980b73ce6a75d (patch) | |
tree | 5761b1d5dfea492f14052b3d2d640a374e49a454 /lib/impure | |
parent | 048811b2be4ac05415e0ef67777dfd297f7be4d6 (diff) | |
download | Nim-f45a2f23b04aa1d37b482ba3d07980b73ce6a75d.tar.gz |
bugfix: macro evaluation; added colors.extractRGB
Diffstat (limited to 'lib/impure')
-rwxr-xr-x | lib/impure/graphics.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/impure/graphics.nim b/lib/impure/graphics.nim index 5f7783fe9..931a49c89 100755 --- a/lib/impure/graphics.nim +++ b/lib/impure/graphics.nim @@ -150,7 +150,7 @@ proc drawLine*(sur: PSurface, p1, p2: TPoint, color: TColor) = setPix(video, pitch, x0, y0, color) proc drawHorLine*(sur: PSurface, x, y, w: Natural, Color: TColor) = - ## draws a horizontal line from (x,y) to (x+w-1, h). + ## draws a horizontal line from (x,y) to (x+w-1, y). var video = cast[PPixels](sur.s.pixels) var pitch = sur.s.pitch div ColSize for i in 0 .. w-1: setPix(video, pitch, x + i, y, color) |