Rev 4358 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4358 | Rev 4401 | ||
---|---|---|---|
Line 395... | Line 395... | ||
395 | xrb->map_h = h; |
395 | xrb->map_h = h; |
Line 396... | Line 396... | ||
396 | 396 | ||
397 | stride = w * cpp; |
397 | stride = w * cpp; |
Line 398... | Line 398... | ||
398 | xrb->Base.Buffer = malloc(h * stride); |
398 | xrb->Base.Buffer = malloc(h * stride); |
399 | 399 | ||
400 | sPriv->swrast_loader->getImage(dPriv, x, y, w, h, |
400 | sPriv->swrast_loader->getImage(dPriv, x, rb->Height - y - h, w, h, |
Line 401... | Line 401... | ||
401 | (char *) xrb->Base.Buffer, |
401 | (char *) xrb->Base.Buffer, |
402 | dPriv->loaderPrivate); |
402 | dPriv->loaderPrivate); |
403 | 403 | ||
404 | *out_map = xrb->Base.Buffer; |
404 | *out_map = xrb->Base.Buffer + (h - 1) * stride; |
Line 405... | Line 405... | ||
405 | *out_stride = stride; |
405 | *out_stride = -stride; |