| 2233 | } |
| 2234 | |
| 2235 | void Frame::warpMouseToFrame(const int player, Uint32 flags) const |
| 2236 | { |
| 2237 | #ifndef EDITOR |
| 2238 | SDL_Rect _size = getAbsoluteSize(); |
| 2239 | inputs.warpMouse(player, |
| 2240 | (_size.x + _size.w / 2) * ((float)xres / (float)Frame::virtualScreenX), |
| 2241 | (_size.y + _size.h / 2) * ((float)yres / (float)Frame::virtualScreenY), |
| 2242 | flags); |
| 2243 | #endif |
| 2244 | } |
| 2245 | |
| 2246 | SDL_Rect Frame::getAbsoluteSize() const |
| 2247 | { |
no test coverage detected