diff options
author | nyamatongwe <unknown> | 2004-05-02 07:27:45 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2004-05-02 07:27:45 +0000 |
commit | a9c5f9a00f8da37d12c84bd9d85c55c3cb9bdbe4 (patch) | |
tree | a0a85776a969fdab64031dcf443625a27f4efe97 | |
parent | e6026fcb7bbde425a7bb4ef4877ec47be0057ae7 (diff) | |
download | scintilla-mirror-a9c5f9a00f8da37d12c84bd9d85c55c3cb9bdbe4.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; } |