diff options
author | nyamatongwe <devnull@localhost> | 2004-05-02 07:27:45 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2004-05-02 07:27:45 +0000 |
commit | 5198c5548b0a1a80d1db6fdb42c7c81dd7b1a57b (patch) | |
tree | a0a85776a969fdab64031dcf443625a27f4efe97 | |
parent | 43ab66166b2c16b765fcb07ee08a05f6f9e58399 (diff) | |
download | scintilla-mirror-5198c5548b0a1a80d1db6fdb42c7c81dd7b1a57b.tar.gz |
Draw lines without the final pixel: this is the same as on
Win32 leading to more consistent graphics.
-rw-r--r-- | gtk/PlatGTK.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx index 7c883e01f..330810883 100644 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -846,6 +846,8 @@ void SurfaceImpl::Init(SurfaceID sid, WindowID WID_NAME) { #endif drawable = drawable_; gc = gdk_gc_new(drawable_); + // Ask for lines that do not paint the last pixel so is like Win32 + gdk_gc_set_line_attributes(gc, 0, GDK_LINE_SOLID, GDK_CAP_NOT_LAST, GDK_JOIN_MITER); createdGC = true; inited = true; } @@ -866,6 +868,8 @@ void SurfaceImpl::InitPixMap(int width, int height, Surface *surface_, WindowID ppixmap = gdk_pixmap_new(surfImpl->drawable, width, height, -1); drawable = ppixmap; gc = gdk_gc_new(surfImpl->drawable); + // Ask for lines that do not paint the last pixel so is like Win32 + gdk_gc_set_line_attributes(gc, 0, GDK_LINE_SOLID, GDK_CAP_NOT_LAST, GDK_JOIN_MITER); createdGC = true; inited = true; } |