summary refs log tree commit diff stats
path: root/lib/impure
diff options
context:
space:
mode:
authorAndreas Rumpf <andreas@andreas-desktop>2010-03-04 23:42:19 +0100
committerAndreas Rumpf <andreas@andreas-desktop>2010-03-04 23:42:19 +0100
commitf45a2f23b04aa1d37b482ba3d07980b73ce6a75d (patch)
tree5761b1d5dfea492f14052b3d2d640a374e49a454 /lib/impure
parent048811b2be4ac05415e0ef67777dfd297f7be4d6 (diff)
downloadNim-f45a2f23b04aa1d37b482ba3d07980b73ce6a75d.tar.gz
bugfix: macro evaluation; added colors.extractRGB
Diffstat (limited to 'lib/impure')
-rwxr-xr-xlib/impure/graphics.nim2
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)