mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
V_DrawFill: Fix with color profile settings
(also the DrawDiag func we don't use anywhere right now)
This commit is contained in:
parent
adf4085f84
commit
756b5600a0
1 changed files with 2 additions and 2 deletions
|
|
@ -1070,7 +1070,7 @@ void V_DrawFill(INT32 x, INT32 y, INT32 w, INT32 h, INT32 c)
|
||||||
|
|
||||||
c &= 255;
|
c &= 255;
|
||||||
|
|
||||||
RGBA_t color = pMasterPalette[c];
|
RGBA_t color = pLocalPalette[c];
|
||||||
UINT8 r = (color.rgba & 0xFF);
|
UINT8 r = (color.rgba & 0xFF);
|
||||||
UINT8 g = (color.rgba & 0xFF00) >> 8;
|
UINT8 g = (color.rgba & 0xFF00) >> 8;
|
||||||
UINT8 b = (color.rgba & 0xFF0000) >> 16;
|
UINT8 b = (color.rgba & 0xFF0000) >> 16;
|
||||||
|
|
@ -1262,7 +1262,7 @@ void V_DrawDiag(INT32 x, INT32 y, INT32 wh, INT32 c)
|
||||||
{
|
{
|
||||||
auto builder = g_2d.begin_verts();
|
auto builder = g_2d.begin_verts();
|
||||||
|
|
||||||
const RGBA_t color = pMasterPalette[c];
|
const RGBA_t color = pLocalPalette[c];
|
||||||
const float r = ((color.rgba & 0xFF000000) >> 24) / 255.f;
|
const float r = ((color.rgba & 0xFF000000) >> 24) / 255.f;
|
||||||
const float g = ((color.rgba & 0xFF0000) >> 16) / 255.f;
|
const float g = ((color.rgba & 0xFF0000) >> 16) / 255.f;
|
||||||
const float b = ((color.rgba & 0xFF00) >> 8) / 255.f;
|
const float b = ((color.rgba & 0xFF00) >> 8) / 255.f;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue