diff options
author | Silenio Quarti <silenio> | 2008-01-21 19:34:32 +0000 |
---|---|---|
committer | Silenio Quarti <silenio> | 2008-01-21 19:34:32 +0000 |
commit | dd5f3f01a50a375ef6e66929f7bfb233e65029c0 (patch) | |
tree | 72dae59a527f39cb3242aadd2597fe5abe0f9339 /bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java | |
parent | 71a8f7dd16753fa2efa318800b96563674ce4862 (diff) | |
download | eclipse.platform.swt-dd5f3f01a50a375ef6e66929f7bfb233e65029c0.tar.gz eclipse.platform.swt-dd5f3f01a50a375ef6e66929f7bfb233e65029c0.tar.xz eclipse.platform.swt-dd5f3f01a50a375ef6e66929f7bfb233e65029c0.zip |
hold on to Font object
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java')
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java index 9ae3435d80..33f8d871eb 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java @@ -1281,7 +1281,7 @@ LRESULT WM_PAINT (int /*long*/ wParam, int /*long*/ lParam) { Control control = findBackgroundControl (); if (control == null) control = this; data.background = control.getBackgroundPixel (); - data.hFont = OS.SendMessage (handle, OS.WM_GETFONT, 0, 0); + data.font = Font.win32_new(display, OS.SendMessage (handle, OS.WM_GETFONT, 0, 0)); data.uiState = (int)/*64*/OS.SendMessage (handle, OS.WM_QUERYUISTATE, 0, 0); if ((style & SWT.NO_BACKGROUND) != 0) { /* This code is intentionally commented because it may be slow to copy bits from the screen */ @@ -1465,7 +1465,7 @@ LRESULT WM_PRINTCLIENT (int /*long*/ wParam, int /*long*/ lParam) { Control control = findBackgroundControl (); if (control == null) control = this; data.background = control.getBackgroundPixel (); - data.hFont = OS.SendMessage (handle, OS.WM_GETFONT, 0, 0); + data.font = Font.win32_new(display, OS.SendMessage (handle, OS.WM_GETFONT, 0, 0)); data.uiState = (int)/*64*/OS.SendMessage (handle, OS.WM_QUERYUISTATE, 0, 0); GC gc = GC.win32_new (wParam, data); Event event = new Event (); |