6551075: screenshot image taken through clipboard on W2K terminal server is shifted

Reviewed-by: dav, uta
This commit is contained in:
Andrew Brygin 2009-01-20 19:51:46 +03:00
parent c0731761a3
commit 3247a31478

View File

@ -398,7 +398,7 @@ Java_sun_awt_windows_WDataTransferer_platformImageBytesToImageData(
case 4:
case 8:
nColorEntries = (pSrcBmih->biClrUsed != 0) ?
pSrcBmih->biClrUsed : 1 << (pSrcBmih->biBitCount - 1);
pSrcBmih->biClrUsed : (1 << pSrcBmih->biBitCount);
break;
case 16:
case 24: