chiark
/
gitweb
/
~ian
/
sgt-puzzles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eae4059
)
GNUstep compatibility: ensure both endpoints are actually drawn by
author
Simon Tatham
<anakin@pobox.com>
Sun, 6 May 2012 14:01:39 +0000
(14:01 +0000)
committer
Simon Tatham
<anakin@pobox.com>
Sun, 6 May 2012 14:01:39 +0000
(14:01 +0000)
draw_line, by the brute-force method of explicitly plotting them in
addition to the GUI's line-drawing operation.
[originally from svn r9505]
osx.m
patch
|
blob
|
history
diff --git
a/osx.m
b/osx.m
index 53d14bafd8edd07a63c051fe50c70cf3e5235a7b..b59999d7f100f1c4bcbad3fd19899ab24bc539f6 100644
(file)
--- 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)
{