| 148 | } |
| 149 | |
| 150 | void GuiBitmapCtrl::setBitmapHandle(GFXTexHandle handle, bool resize) |
| 151 | { |
| 152 | mBitmap = handle; |
| 153 | |
| 154 | mBitmapName = StringTable->insert("texhandle"); |
| 155 | |
| 156 | // Resize the control to fit the bitmap |
| 157 | if (resize) |
| 158 | { |
| 159 | setExtent(mBitmap->getWidth(), mBitmap->getHeight()); |
| 160 | updateSizing(); |
| 161 | } |
| 162 | } |
| 163 | |
| 164 | void GuiBitmapCtrl::onRender(Point2I offset, const RectI &updateRect) |
| 165 | { |
no test coverage detected