/* */ public Region prepaint()
/* */ throws QTException
/* */ {
/* 518 */ if (this.offscreenImage == null) return null;
/* */
/* 520 */ Region localRegion = null;
/* */ try
/* */ {
/* 524 */ if (this.offscreenGraphics == null) {
/* 525 */ this.offscreenGraphics = this.offscreenImage.getGraphics();
/* */ }
/* 527 */ Rectangle[] arrayOfRectangle = this.painter.paint(this.offscreenGraphics);
/* 528 */ if (arrayOfRectangle != null)
/* 529 */ for (int i = 0; (i < arrayOfRectangle.length) &&
/* 530 */ (arrayOfRectangle[i] != null); i++)
/* */ {
/* 531 */ int j = arrayOfRectangle[i].x;
/* 532 */ int k = arrayOfRectangle[i].y;
/* 533 */ int m = arrayOfRectangle[i].width > this.mSize.width ? this.mSize.width : arrayOfRectangle[i].width;
/* 534 */ int n = arrayOfRectangle[i].height > this.mSize.height ? this.mSize.height : arrayOfRectangle[i].height;
/* 535 */ PixelGrabber localPixelGrabber = new PixelGrabber(this.offscreenImage, j, k, m, n, this.iData.getInts(), k * this.mSize.width + j, this.mSize.width);
/* 536 */ localPixelGrabber.grabPixels();
/* 537 */ if (localRegion == null)
/* 538 */ localRegion = new Region(new QDRect(arrayOfRectangle[i].x, arrayOfRectangle[i].y, arrayOfRectangle[i].width, arrayOfRectangle[i].height));
/* */ else
/* 540 */ localRegion = localRegion.union(new QDRect(arrayOfRectangle[i].x, arrayOfRectangle[i].y, arrayOfRectangle[i].width, arrayOfRectangle[i].height));
/* */ }
/* */ }
/* */ catch (InterruptedException localInterruptedException) {
/* 544 */ this.interruptedGrab = true;
/* 545 */ if (this.singleFrameFlag == 2)