diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2009-04-12 13:48:03 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2009-04-12 13:48:03 +0000 |
| commit | afe1b90dd012216b007112dc5c92f22a1f034bd7 (patch) | |
| tree | 4901f175dfc467c1fad640657e9f0db4f823c8d4 /src/fl_rect.cxx | |
| parent | fcfe41ee0566038fcc6c690569b4d04469f43b06 (diff) | |
Reorganized Unittest / fixed and improved OS X keybord support and alternative input methods / fixed OS X utf8 DnD
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6755 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_rect.cxx')
| -rw-r--r-- | src/fl_rect.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fl_rect.cxx b/src/fl_rect.cxx index ec0ed5832..fb7fe0f05 100644 --- a/src/fl_rect.cxx +++ b/src/fl_rect.cxx @@ -419,8 +419,8 @@ void fl_point(int x, int y) { SetPixel(fl_gc, x, y, fl_RGB()); #elif defined(__APPLE_QUARTZ__) if (fl_quartz_line_width_==1.0f) CGContextSetShouldAntialias(fl_gc, false); - CGContextMoveToPoint(fl_gc, x, y); - CGContextAddLineToPoint(fl_gc, x, y); + CGContextMoveToPoint(fl_gc, x-.5, y); // Quartz needs a line that is one pixel long, or it will not draw anything + CGContextAddLineToPoint(fl_gc, x+.5, y); CGContextStrokePath(fl_gc); if (fl_quartz_line_width_==1.0f) CGContextSetShouldAntialias(fl_gc, true); #else |
