| 52 | } |
| 53 | |
| 54 | void CImage::drawImage() |
| 55 | { |
| 56 | if ( !(this->flags & 0x40) && |
| 57 | this->grpBounds.bottom > 0 && |
| 58 | this->grpBounds.right > 0 ) |
| 59 | { |
| 60 | if ( (this->flags & 1) /*|| this->needsRefresh()*/ ) |
| 61 | { |
| 62 | rect rctDraw = { this->grpBounds.left, this->grpBounds.top, this->grpBounds.right, this->grpBounds.bottom }; |
| 63 | this->renderFunction(this->screenPosition.x, this->screenPosition.y, this->getCurrentFrame(), &rctDraw, (int)this->coloringData); |
| 64 | } |
| 65 | } |
| 66 | this->flags &= ~1; // Clear Redraw bit |
| 67 | } |
| 68 | } |