Rev 312 | Rev 433 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 312 | Rev 403 | ||
---|---|---|---|
Line 506... | Line 506... | ||
506 | imagebounds.bottom = imagebounds.top + preview_h; |
506 | imagebounds.bottom = imagebounds.top + preview_h; |
507 | 507 | ||
508 | preview_pmap.baseAddr = imageptr; |
508 | preview_pmap.baseAddr = imageptr; |
509 | preview_pmask.maskData = imageptr+3; // FIXME: is this offset correct for all modes?! |
509 | preview_pmask.maskData = imageptr+3; // FIXME: is this offset correct for all modes?! |
510 | 510 | ||
511 | if(gpb->propertyProcs->getPropertyProc){ |
511 | if((gpb->propertyProcs != NULL) && gpb->propertyProcs->getPropertyProc){ |
512 | gpb->propertyProcs->getPropertyProc(kPhotoshopSignature,propWatchSuspension,0,&watchsusp,NULL); |
512 | gpb->propertyProcs->getPropertyProc(kPhotoshopSignature,propWatchSuspension,0,&watchsusp,NULL); |
513 | gpb->propertyProcs->setPropertyProc(kPhotoshopSignature,propWatchSuspension,0,watchsusp+1,NULL); |
513 | gpb->propertyProcs->setPropertyProc(kPhotoshopSignature,propWatchSuspension,0,watchsusp+1,NULL); |
514 | } |
514 | } |
515 | 515 | ||
516 | e = gpb->displayPixels(&preview_pmap,&srcRect,imagebounds.top,imagebounds.left,hdc); |
516 | e = gpb->displayPixels(&preview_pmap,&srcRect,imagebounds.top,imagebounds.left,hdc); |
517 | 517 | ||
518 | if(gpb->propertyProcs->getPropertyProc) |
518 | if((gpb->propertyProcs != NULL) && gpb->propertyProcs->getPropertyProc) |
519 | gpb->propertyProcs->setPropertyProc(kPhotoshopSignature,propWatchSuspension,0,watchsusp,NULL); |
519 | gpb->propertyProcs->setPropertyProc(kPhotoshopSignature,propWatchSuspension,0,watchsusp,NULL); |
520 | } |
520 | } |
521 | return e; |
521 | return e; |
522 | } |
522 | } |