changeset 884:127e3269ee1f

6551075: screenshot image taken through clipboard on W2K terminal server is shifted Reviewed-by: dav, uta
author bae
date Tue, 20 Jan 2009 19:51:46 +0300
parents 63d087cacbf9
children 9fa2e56c8a30
files src/windows/native/sun/windows/awt_DataTransferer.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/windows/native/sun/windows/awt_DataTransferer.cpp	Tue Jan 13 20:04:05 2009 +0100
+++ b/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: