| 210 | } |
| 211 | |
| 212 | void GuiBitmapCtrl::setValue(S32 x, S32 y) |
| 213 | { |
| 214 | if (mBitmap) |
| 215 | { |
| 216 | x += mBitmap->getWidth() / 2; |
| 217 | y += mBitmap->getHeight() / 2; |
| 218 | } |
| 219 | while (x < 0) |
| 220 | x += 256; |
| 221 | mStartPoint.x = x % 256; |
| 222 | |
| 223 | while (y < 0) |
| 224 | y += 256; |
| 225 | mStartPoint.y = y % 256; |
| 226 | } |
| 227 | |
| 228 | DefineEngineMethod( GuiBitmapCtrl, setValue, void, ( S32 x, S32 y ),, |
| 229 | "Set the offset of the bitmap within the control.\n" |
no test coverage detected