mirror of
https://github.com/isledecomp/isle-portable.git
synced 2025-09-22 11:31:57 -04:00
Fix DirectDrawPalette_SDL3GPUImpl::SetEntries
(#189)
This commit is contained in:
parent
def1cf8a12
commit
ddba1bc5c1
@ -39,10 +39,10 @@ HRESULT DirectDrawPalette_SDL3GPUImpl::SetEntries(
|
||||
{
|
||||
SDL_Color colors[256];
|
||||
for (DWORD i = 0; i < dwCount; i++) {
|
||||
colors[i].r = lpEntries[dwStartingEntry + i].peRed;
|
||||
colors[i].g = lpEntries[dwStartingEntry + i].peGreen;
|
||||
colors[i].b = lpEntries[dwStartingEntry + i].peBlue;
|
||||
colors[i].a = SDL_ALPHA_OPAQUE;
|
||||
colors[i + dwStartingEntry].r = lpEntries[i].peRed;
|
||||
colors[i + dwStartingEntry].g = lpEntries[i].peGreen;
|
||||
colors[i + dwStartingEntry].b = lpEntries[i].peBlue;
|
||||
colors[i + dwStartingEntry].a = SDL_ALPHA_OPAQUE;
|
||||
}
|
||||
|
||||
SDL_SetPaletteColors(m_palette, colors, dwStartingEntry, dwCount);
|
||||
|
Loading…
x
Reference in New Issue
Block a user