6551075: screenshot image taken through clipboard on W2K terminal server is shifted
authorbae
Tue, 20 Jan 2009 19:51:46 +0300
changeset 1976 91e064d8ddb9
parent 1975 b8dae32335f2
child 1977 3a9980ccb120
6551075: screenshot image taken through clipboard on W2K terminal server is shifted Reviewed-by: dav, uta
jdk/src/windows/native/sun/windows/awt_DataTransferer.cpp
--- a/jdk/src/windows/native/sun/windows/awt_DataTransferer.cpp	Tue Jan 13 20:04:05 2009 +0100
+++ b/jdk/src/windows/native/sun/windows/awt_DataTransferer.cpp	Tue Jan 20 19:51:46 2009 +0300
@@ -398,7 +398,7 @@
                 case  4:
                 case  8:
                     nColorEntries = (pSrcBmih->biClrUsed != 0) ?
-                        pSrcBmih->biClrUsed : 1 << (pSrcBmih->biBitCount - 1);
+                        pSrcBmih->biClrUsed : (1 << pSrcBmih->biBitCount);
                     break;
                 case 16:
                 case 24: