diff options
author | Grant Gayed <ggayed> | 2003-08-12 16:05:04 +0000 |
---|---|---|
committer | Grant Gayed <ggayed> | 2003-08-12 16:05:04 +0000 |
commit | cde727956f65afa6e5b3ae98db69f599038e7ec2 (patch) | |
tree | 17cd165125a465b37d2874008cb753b7542902fb | |
parent | 4638bed3bce251710fce046e2fc3f42de207646f (diff) | |
download | eclipse.platform.swt-cde727956f65afa6e5b3ae98db69f599038e7ec2.tar.gz eclipse.platform.swt-cde727956f65afa6e5b3ae98db69f599038e7ec2.tar.xz eclipse.platform.swt-cde727956f65afa6e5b3ae98db69f599038e7ec2.zip |
*** empty log message ***
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/graphics/GC.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/graphics/GC.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/graphics/GC.java index 8a70a52750..c768ab4dbc 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/graphics/GC.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/graphics/GC.java @@ -2473,10 +2473,12 @@ public void setForeground (Color color) { public void setLineStyle(int lineStyle) { if (handle == 0) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED); int xDisplay = data.display; + XGCValues values = new XGCValues (); + OS.XGetGCValues (xDisplay, handle, OS.GCLineWidth, values); switch (lineStyle) { case SWT.LINE_SOLID: data.lineStyle = lineStyle; - OS.XSetLineAttributes(xDisplay, handle, 0, OS.LineSolid, OS.CapButt, OS.JoinMiter); + OS.XSetLineAttributes(xDisplay, handle, values.line_width, OS.LineSolid, OS.CapButt, OS.JoinMiter); return; case SWT.LINE_DASH: OS.XSetDashes(xDisplay,handle,0, new byte[] {6, 2},2); @@ -2494,7 +2496,7 @@ public void setLineStyle(int lineStyle) { SWT.error(SWT.ERROR_INVALID_ARGUMENT); } data.lineStyle = lineStyle; - OS.XSetLineAttributes(xDisplay, handle, 0, OS.LineOnOffDash, OS.CapButt, OS.JoinMiter); + OS.XSetLineAttributes(xDisplay, handle, values.line_width, OS.LineOnOffDash, OS.CapButt, OS.JoinMiter); } /** |