shithub: puzzles

Download patch

ref: cab65638b580d0c1cdfcc51cd97a2c4de381754a
parent: eae4059d3de37df28c72a5013491ee1359152798
author: Simon Tatham <anakin@pobox.com>
date: Sun May 6 10:01:39 EDT 2012

GNUstep compatibility: ensure both endpoints are actually drawn by
draw_line, by the brute-force method of explicitly plotting them in
addition to the GUI's line-drawing operation.

[originally from svn r9505]

--- a/osx.m
+++ b/osx.m
@@ -1342,6 +1342,8 @@
     [path moveToPoint:p1];
     [path lineToPoint:p2];
     [path stroke];
+    NSRectFill(NSMakeRect(x1, fe->h-y1-1, 1, 1));
+    NSRectFill(NSMakeRect(x2, fe->h-y2-1, 1, 1));
 }
 static void osx_draw_rect(void *handle, int x, int y, int w, int h, int colour)
 {