OpenGL rgb555 support

This commit is contained in:
andrews05 2023-02-16 16:24:43 -08:00
parent d9d98e0ab1
commit 8cd776abf7
4 changed files with 22 additions and 0 deletions

View file

@ -1374,6 +1374,12 @@ HRESULT dd_CreateSurface(
dst_surface->bmi->bmiColors[i].rgbReserved = 0;
}
}
else if (dst_surface->bpp == 16 && g_ddraw->rgb555)
{
((DWORD*)dst_surface->bmi->bmiColors)[0] = 0x7C00;
((DWORD*)dst_surface->bmi->bmiColors)[1] = 0x03E0;
((DWORD*)dst_surface->bmi->bmiColors)[2] = 0x001F;
}
else if (dst_surface->bpp == 16)
{
((DWORD*)dst_surface->bmi->bmiColors)[0] = 0xF800;