mirror of
https://github.com/blupi-games/planetblupi
synced 2024-12-30 10:15:36 +01:00
Cosmetic
This commit is contained in:
parent
67573c7920
commit
17c0a1fa47
@ -242,7 +242,7 @@ HRESULT CPixmap::BltFast(int chDst, int channel,
|
||||
dstRect = srcRect;
|
||||
dstRect.x = dst.x;
|
||||
dstRect.y = dst.y;
|
||||
//SDL_BlitSurface (m_lpSDLSurface[channel], &srcRect, m_lpSDLBack, &dstRect);
|
||||
|
||||
SDL_RenderCopy (g_renderer, m_lpSDLTexture[channel], &srcRect, &dstRect);
|
||||
}
|
||||
else
|
||||
@ -255,13 +255,10 @@ HRESULT CPixmap::BltFast(int chDst, int channel,
|
||||
dstRect = srcRect;
|
||||
dstRect.x = dst.x;
|
||||
dstRect.y = dst.y;
|
||||
//SDL_BlitSurface (m_lpSDLSurface[channel], &srcRect, m_lpSDLSurface[chDst], &dstRect);
|
||||
|
||||
//SDL_SetTextureBlendMode (m_lpSDLTexture[chDst], SDL_BLENDMODE_BLEND);
|
||||
SDL_SetRenderTarget (g_renderer, m_lpSDLTexture[chDst]);
|
||||
SDL_RenderCopy (g_renderer, m_lpSDLTexture[channel], &srcRect, &dstRect);
|
||||
SDL_SetRenderTarget (g_renderer, nullptr);
|
||||
//SDL_RenderCopy (g_renderer, m_lpSDLTexture[chDst], NULL, NULL);
|
||||
}
|
||||
|
||||
return ddrval;
|
||||
@ -287,7 +284,7 @@ HRESULT CPixmap::BltFast(SDL_Texture *lpSDL,
|
||||
dstRect = srcRect;
|
||||
dstRect.x = dst.x;
|
||||
dstRect.y = dst.y;
|
||||
//SDL_BlitSurface (m_lpSDLSurface[channel], &srcRect, lpSDL, &dstRect);
|
||||
|
||||
SDL_SetRenderTarget (g_renderer, lpSDL);
|
||||
SDL_RenderCopy (g_renderer, m_lpSDLTexture[channel], &srcRect, &dstRect);
|
||||
SDL_SetRenderTarget (g_renderer, nullptr);
|
||||
|
Loading…
x
Reference in New Issue
Block a user