mi: miPutImage with XYPixmap failed at depth 32 on 64-bit machines

64-bit patch by Keith Packard.
This commit is contained in:
Lauri Kasanen 2014-03-19 11:38:52 +02:00
parent e4fd881589
commit c88790135c
1 changed files with 1 additions and 1 deletions

View File

@ -791,7 +791,7 @@ miPutImage(pDraw, pGC, depth, x, y, w, h, leftPad, format, pImage)
DoChangeGC(pGC, GCForeground | GCBackground, gcv, 0);
bytesPer = (long)h * BitmapBytePad(w + leftPad);
for (i = 1 << (depth-1); i != 0; i >>= 1, pImage += bytesPer)
for (i = (unsigned long) 1 << (depth-1); i != 0; i >>= 1, pImage += bytesPer)
{
if (i & oldPlanemask)
{