aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2012-05-06 14:01:39 +0000
committerSimon Tatham <anakin@pobox.com>2012-05-06 14:01:39 +0000
commitcab65638b580d0c1cdfcc51cd97a2c4de381754a (patch)
tree4d19935591b6eba617da47623392f1a651d99994
parenteae4059d3de37df28c72a5013491ee1359152798 (diff)
downloadpuzzles-cab65638b580d0c1cdfcc51cd97a2c4de381754a.zip
puzzles-cab65638b580d0c1cdfcc51cd97a2c4de381754a.tar.gz
puzzles-cab65638b580d0c1cdfcc51cd97a2c4de381754a.tar.bz2
puzzles-cab65638b580d0c1cdfcc51cd97a2c4de381754a.tar.xz
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]
-rw-r--r--osx.m2
1 files changed, 2 insertions, 0 deletions
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)
{