mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 19:19:56 +00:00
Remove unused arguments
This commit is contained in:
parent
6fc6913424
commit
eaf3f5a829
3 changed files with 6 additions and 8 deletions
|
@ -2020,13 +2020,11 @@ namespace MWGui
|
|||
if(image.valid())
|
||||
{
|
||||
//everything looks good, send it to the cursor manager
|
||||
Uint8 size_x = imgSetPointer->getSize().width;
|
||||
Uint8 size_y = imgSetPointer->getSize().height;
|
||||
Uint8 hotspot_x = imgSetPointer->getHotSpot().left;
|
||||
Uint8 hotspot_y = imgSetPointer->getHotSpot().top;
|
||||
int rotation = imgSetPointer->getRotation();
|
||||
|
||||
mCursorManager->createCursor(imgSetPointer->getResourceName(), rotation, image, size_x, size_y, hotspot_x, hotspot_y);
|
||||
mCursorManager->createCursor(imgSetPointer->getResourceName(), rotation, image, hotspot_x, hotspot_y);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -29,10 +29,10 @@ namespace SDLUtil
|
|||
/// name of the cursor we changed to ("arrow", "ibeam", etc)
|
||||
virtual void cursorChanged(const std::string &name);
|
||||
|
||||
virtual void createCursor(const std::string &name, int rotDegrees, osg::Image* image, Uint8 size_x, Uint8 size_y, Uint8 hotspot_x, Uint8 hotspot_y);
|
||||
virtual void createCursor(const std::string &name, int rotDegrees, osg::Image* image, Uint8 hotspot_x, Uint8 hotspot_y);
|
||||
|
||||
private:
|
||||
void _createCursorFromResource(const std::string &name, int rotDegrees, osg::Image* image, Uint8 size_x, Uint8 size_y, Uint8 hotspot_x, Uint8 hotspot_y);
|
||||
void _createCursorFromResource(const std::string &name, int rotDegrees, osg::Image* image, Uint8 hotspot_x, Uint8 hotspot_y);
|
||||
void _putPixel(SDL_Surface *surface, int x, int y, Uint32 pixel);
|
||||
|
||||
void _setGUICursor(const std::string& name);
|
||||
|
|
Loading…
Reference in a new issue