6551075: screenshot image taken through clipboard on W2K terminal server is shifted
Reviewed-by: dav, uta
--- 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: