471 |
|
return SetTile(tile) && RenderRect(); |
472 |
|
} |
473 |
|
|
474 |
+ |
// Back to float color with 16-bit depth |
475 |
+ |
bool |
476 |
+ |
RpictSimulManager::RenderTile(COLORV *rp, int ystride, short *dp, const int *tile) |
477 |
+ |
{ |
478 |
+ |
if (!rp | (GetWidth() <= 0) | (GetHeight() <= 0) | !vw.type) |
479 |
+ |
return false; |
480 |
+ |
if (!ystride) // contiguous rows? |
481 |
+ |
ystride = TWidth(); |
482 |
+ |
pacc.Init(rp, ystride, dp); |
483 |
+ |
if (prims == xyzprims) |
484 |
+ |
pacc.SetColorSpace(RDTxyz); |
485 |
+ |
else if (prims) |
486 |
+ |
pacc.SetColorSpace(RDTrgb, prims); |
487 |
+ |
|
488 |
+ |
return SetTile(tile) && RenderRect(); |
489 |
+ |
} |
490 |
+ |
|
491 |
|
// Allocate a new render bar |
492 |
|
void |
493 |
|
RpictSimulManager::NewBar(int ht) |