summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Northover <steve>2006-01-03 19:23:30 +0000
committerSteve Northover <steve>2006-01-03 19:23:30 +0000
commitaf911e1eb3afd0728a01495f0f1419e64bb006ca (patch)
tree288af32b1582b9b429563fe0a07c304cd53dbf4a
parent4aacb54bfcdb65562db6ca6951a4263370f3e1cc (diff)
downloadeclipse.platform.swt-af911e1eb3afd0728a01495f0f1419e64bb006ca.tar.gz
eclipse.platform.swt-af911e1eb3afd0728a01495f0f1419e64bb006ca.tar.xz
eclipse.platform.swt-af911e1eb3afd0728a01495f0f1419e64bb006ca.zip
121903 - OS.AlphaBlend causes "bddraw" stdout spew, 121896 - dibseciton stdout spam
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java
index 970df9b9a7..2c9696f7a5 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java
@@ -893,7 +893,7 @@ void drawBitmapAlpha(Image srcImage, int srcX, int srcY, int srcWidth, int srcHe
return;
}
- if (!OS.IsWinCE && OS.WIN32_VERSION >= OS.VERSION(4, 10)) {
+ if (OS.IsWinNT && OS.WIN32_VERSION >= OS.VERSION(4, 10)) {
BLENDFUNCTION blend = new BLENDFUNCTION();
blend.BlendOp = OS.AC_SRC_OVER;
int srcHdc = OS.CreateCompatibleDC(handle);
@@ -2207,7 +2207,7 @@ public void fillGradientRectangle(int x, int y, int width, int height, boolean v
* to the right edge of the rectangle. The fix is not to use
* GradientFill for printer devices.
*/
- if (!OS.IsWinCE && rop2 != OS.R2_XORPEN && OS.GetDeviceCaps(handle, OS.TECHNOLOGY) != OS.DT_RASPRINTER) {
+ if (OS.IsWinNT && rop2 != OS.R2_XORPEN && OS.GetDeviceCaps(handle, OS.TECHNOLOGY) != OS.DT_RASPRINTER) {
final int hHeap = OS.GetProcessHeap();
final int pMesh = OS.HeapAlloc(hHeap, OS.HEAP_ZERO_MEMORY, GRADIENT_RECT.sizeof + TRIVERTEX.sizeof * 2);
final int pVertex = pMesh + GRADIENT_RECT.sizeof;