< prev index next >
src/java.desktop/unix/native/common/java2d/x11/X11TextRenderer_md.c
Print this page
rev 52901 : 8233250: Better X11 rendering
Reviewed-by: prr, rhalade, mschoene, serb
@@ -152,11 +152,11 @@
}
width = right - left;
height = bottom - top;
top -= clipTop;
left -= clipLeft;
- pPix = ((jubyte *) theImage->data) + (left >> 3) + top * scan;
+ pPix = ((jubyte *) theImage->data) + (left >> 3) + (intptr_t) top * scan;
left &= 0x07;
if (theImage->bitmap_bit_order == MSBFirst) {
left = 0x80 >> left;
do {
int x = 0, bx = 0;
< prev index next >