Skip to content

Commit

Permalink
Fix OpenGL Overlay Invert when under Invuln Colormap
Browse files Browse the repository at this point in the history
  • Loading branch information
andrikpowell committed Dec 6, 2024
1 parent 78853c7 commit 5976acf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions prboom2/src/gl_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -848,9 +848,9 @@ void gld_FillBlock(int x, int y, int width, int height, int col)
glsl_PopNullShader();
}

void gld_DrawShaded(int x, int y, int width, int height, int col, int screenshade)
void gld_DrawShaded(int x, int y, int width, int height, int screenshade)
{
color_rgb_t color = gld_LookupIndexedColor(col, V_IsUILightmodeIndexed() || V_IsAutomapLightmodeIndexed());
color_rgb_t color = gld_LookupIndexedColor(playpal_black, V_IsAutomapLightmodeIndexed());

glsl_PushNullShader();

Expand Down
2 changes: 1 addition & 1 deletion prboom2/src/gl_struct.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ void gld_DrawLine(int x0, int y0, int x1, int y1, int BaseColor);
void gld_DrawLine_f(float x0, float y0, float x1, float y1, int BaseColor);
void gld_DrawWeapon(int weaponlump, vissprite_t *vis, int lightlevel);
void gld_FillBlock(int x, int y, int width, int height, int col);
void gld_DrawShaded(int x, int y, int width, int height, int col, int screenshade);
void gld_DrawShaded(int x, int y, int width, int height, int screenshade);
void gld_SetPalette(int palette);
unsigned char *gld_ReadScreen(void);

Expand Down
2 changes: 1 addition & 1 deletion prboom2/src/v_video.c
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ static void WRAP_gld_DrawLine(fline_t* fl, int color)
}
static void WRAP_gld_DrawShaded(int scrn, int x, int y, int width, int height, int screenshade)
{
gld_DrawShaded(x, y, width, height, playpal_black, screenshade);
gld_DrawShaded(x, y, width, height, screenshade);
}

static void NULL_BeginUIDraw(void) {}
Expand Down

0 comments on commit 5976acf

Please sign in to comment.