Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Heidrich2006-07-05 20:09:56 +0000
committerFelipe Heidrich2006-07-05 20:09:56 +0000
commit82a1c09af233bc8cd6f0c7fc54f4d78ed4a74ece (patch)
treea3ed716284e0d1cce15f021931f6a15a6b19e4ab /bundles/org.eclipse.swt/Eclipse SWT Printing/motif/org/eclipse
parent5e05c860c75fb9386e23dd52fa60db7a593598e0 (diff)
downloadeclipse.platform.swt-82a1c09af233bc8cd6f0c7fc54f4d78ed4a74ece.tar.gz
eclipse.platform.swt-82a1c09af233bc8cd6f0c7fc54f4d78ed4a74ece.tar.xz
eclipse.platform.swt-82a1c09af233bc8cd6f0c7fc54f4d78ed4a74ece.zip
134760 - Performance of fill* methods
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Printing/motif/org/eclipse')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT Printing/motif/org/eclipse/swt/printing/Printer.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Printing/motif/org/eclipse/swt/printing/Printer.java b/bundles/org.eclipse.swt/Eclipse SWT Printing/motif/org/eclipse/swt/printing/Printer.java
index f4a08ef71e..1c4a781bfe 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT Printing/motif/org/eclipse/swt/printing/Printer.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Printing/motif/org/eclipse/swt/printing/Printer.java
@@ -381,8 +381,12 @@ public int internal_new_GC(GCData data) {
if (defaultGC != 0) {
XGCValues values = new XGCValues();
OS.XGetGCValues(xDisplay, defaultGC, OS.GCBackground | OS.GCForeground, values);
- data.foreground = values.foreground;
- data.background = values.background;
+ XColor foreground = new XColor ();
+ foreground.pixel = values.foreground;
+ data.foreground = foreground;
+ XColor background = new XColor ();
+ background.pixel = values.background;
+ data.background = background;
}
isGCCreated = true;
}

Back to the top