mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
Remove unused method
This commit is contained in:
@@ -188,7 +188,7 @@ std::shared_ptr<IConstImage> RenderHandler::loadImageImpl(const ImageLocator & l
|
|||||||
|
|
||||||
std::shared_ptr<IImage> RenderHandler::loadImage(const ImageLocator & locator, EImageBlitMode mode)
|
std::shared_ptr<IImage> RenderHandler::loadImage(const ImageLocator & locator, EImageBlitMode mode)
|
||||||
{
|
{
|
||||||
return loadImageImpl(locator)->createImageReference(mode);
|
return loadImageImpl(locator)->createImageReference(mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::shared_ptr<IImage> RenderHandler::loadImage(const AnimationPath & path, int frame, int group, EImageBlitMode mode)
|
std::shared_ptr<IImage> RenderHandler::loadImage(const AnimationPath & path, int frame, int group, EImageBlitMode mode)
|
||||||
|
|||||||
@@ -63,19 +63,6 @@ void CSDL_Ext::setAlpha(SDL_Surface * bg, int value)
|
|||||||
SDL_SetSurfaceAlphaMod(bg, value);
|
SDL_SetSurfaceAlphaMod(bg, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CSDL_Ext::updateRect(SDL_Surface *surface, const Rect & rect )
|
|
||||||
{
|
|
||||||
SDL_Rect rectSDL = CSDL_Ext::toSDL(rect);
|
|
||||||
if(0 !=SDL_UpdateTexture(screenTexture, &rectSDL, surface->pixels, surface->pitch))
|
|
||||||
logGlobal->error("%sSDL_UpdateTexture %s", __FUNCTION__, SDL_GetError());
|
|
||||||
|
|
||||||
SDL_RenderClear(mainRenderer);
|
|
||||||
if(0 != SDL_RenderCopy(mainRenderer, screenTexture, nullptr, nullptr))
|
|
||||||
logGlobal->error("%sSDL_RenderCopy %s", __FUNCTION__, SDL_GetError());
|
|
||||||
SDL_RenderPresent(mainRenderer);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
SDL_Surface * CSDL_Ext::newSurface(int w, int h)
|
SDL_Surface * CSDL_Ext::newSurface(int w, int h)
|
||||||
{
|
{
|
||||||
return newSurface(w, h, screen);
|
return newSurface(w, h, screen);
|
||||||
|
|||||||
@@ -61,8 +61,6 @@ using TColorPutterAlpha = void (*)(uint8_t *&, const uint8_t &, const uint8_t &,
|
|||||||
void fillRect(SDL_Surface * dst, const Rect & dstrect, const SDL_Color & color);
|
void fillRect(SDL_Surface * dst, const Rect & dstrect, const SDL_Color & color);
|
||||||
void fillRectBlended(SDL_Surface * dst, const Rect & dstrect, const SDL_Color & color);
|
void fillRectBlended(SDL_Surface * dst, const Rect & dstrect, const SDL_Color & color);
|
||||||
|
|
||||||
void updateRect(SDL_Surface * surface, const Rect & rect);
|
|
||||||
|
|
||||||
void putPixelWithoutRefresh(SDL_Surface * ekran, const int & x, const int & y, const uint8_t & R, const uint8_t & G, const uint8_t & B, uint8_t A = 255);
|
void putPixelWithoutRefresh(SDL_Surface * ekran, const int & x, const int & y, const uint8_t & R, const uint8_t & G, const uint8_t & B, uint8_t A = 255);
|
||||||
void putPixelWithoutRefreshIfInSurf(SDL_Surface *ekran, const int & x, const int & y, const uint8_t & R, const uint8_t & G, const uint8_t & B, uint8_t A = 255);
|
void putPixelWithoutRefreshIfInSurf(SDL_Surface *ekran, const int & x, const int & y, const uint8_t & R, const uint8_t & G, const uint8_t & B, uint8_t A = 255);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user