|
|
|
@ -211,12 +211,12 @@ namespace SDLUtil
|
|
|
|
|
SDL_SetCursor(mCursorMap.find(name)->second);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void SDLCursorManager::createCursor(const std::string& name, int rotDegrees, osg::Image* image, Uint8 size_x, Uint8 size_y, Uint8 hotspot_x, Uint8 hotspot_y)
|
|
|
|
|
void SDLCursorManager::createCursor(const std::string& name, int rotDegrees, osg::Image* image, Uint8 hotspot_x, Uint8 hotspot_y)
|
|
|
|
|
{
|
|
|
|
|
_createCursorFromResource(name, rotDegrees, image, size_x, size_y, hotspot_x, hotspot_y);
|
|
|
|
|
_createCursorFromResource(name, rotDegrees, image, hotspot_x, hotspot_y);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void SDLCursorManager::_createCursorFromResource(const std::string& name, int rotDegrees, osg::Image* image, Uint8 size_x, Uint8 size_y, Uint8 hotspot_x, Uint8 hotspot_y)
|
|
|
|
|
void SDLCursorManager::_createCursorFromResource(const std::string& name, int rotDegrees, osg::Image* image, Uint8 hotspot_x, Uint8 hotspot_y)
|
|
|
|
|
{
|
|
|
|
|
osg::ref_ptr<osg::Image> decompressed;
|
|
|
|
|
|
|
|
|
|