From: simon Date: Sun, 6 May 2012 14:01:39 +0000 (+0000) Subject: GNUstep compatibility: ensure both endpoints are actually drawn by X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/commitdiff_plain/735586cf1e54939ee0f208e4bc0e41cfd27fae3a 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. git-svn-id: svn://svn.tartarus.org/sgt/puzzles@9505 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/osx.m b/osx.m index 53d14ba..b59999d 100644 --- a/osx.m +++ b/osx.m @@ -1342,6 +1342,8 @@ static void osx_draw_line(void *handle, int x1, int y1, int x2, int y2, int colo [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) {