mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-02-28 05:29:17 +01:00
Skip rendering of objects that are invisible (alpha = 0).
This commit is contained in:
parent
834038bf51
commit
aae8a92759
@ -276,6 +276,10 @@ SDL_Window* SDL::getWindow( )
|
|||||||
bool SDL::renderCopy( SDL_Texture *texture, float alpha, SDL_Rect *src, SDL_Rect *dest, ViewInfo &viewInfo, float scaleX, float scaleY )
|
bool SDL::renderCopy( SDL_Texture *texture, float alpha, SDL_Rect *src, SDL_Rect *dest, ViewInfo &viewInfo, float scaleX, float scaleY )
|
||||||
{
|
{
|
||||||
|
|
||||||
|
// Skip rendering if the object is invisible anyway
|
||||||
|
if ( alpha == 0 )
|
||||||
|
return true;
|
||||||
|
|
||||||
SDL_Rect srcRect;
|
SDL_Rect srcRect;
|
||||||
SDL_Rect dstRect;
|
SDL_Rect dstRect;
|
||||||
SDL_Rect srcRectCopy;
|
SDL_Rect srcRectCopy;
|
||||||
|
|||||||
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
std::string retrofe_version_major = "0";
|
std::string retrofe_version_major = "0";
|
||||||
std::string retrofe_version_minor = "9";
|
std::string retrofe_version_minor = "9";
|
||||||
std::string retrofe_version_build = "23";
|
std::string retrofe_version_build = "24";
|
||||||
|
|
||||||
|
|
||||||
std::string Version::getString( )
|
std::string Version::getString( )
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user