NGI: Fix alpha handling to sync with TransparentSurface

This commit is contained in:
Eugene Sandulenko 2021-05-12 22:53:22 +02:00
parent 4df3f33399
commit 1d72d5be35
No known key found for this signature in database
GPG Key ID: 014D387312D34F08

View File

@ -778,7 +778,7 @@ void Bitmap::putDib(int x, int y, const Palette &palette, byte alpha) {
if (y1 < 0)
y1 = 0;
int alphac = TS_ARGB(0xff, alpha, 0xff, 0xff);
int alphac = TS_ARGB(alpha, 0xff, 0xff, 0xff);
_surface->blit(g_nmi->_backgroundSurface, x1, y1, _flipping, &sub, alphac);
g_nmi->_system->copyRectToScreen(g_nmi->_backgroundSurface.getBasePtr(x1, y1), g_nmi->_backgroundSurface.pitch, x1, y1, sub.width(), sub.height());