Skip to content

Commit

Permalink
Pause and carousel shadows
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAlaux committed Nov 26, 2024
1 parent 634a5f6 commit 68c8379
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
- **Allowed orbiting around freecam mobj**
- **Made _Screen Wipe Speed Percentage_ setting affect the _Fizzle_ fade**
- **Raised maximum _Rewind Depth_ to 3000**
- **Gave shadow to the _Pause_ graphic when using _HUD/Menu Shadows_**
- **Removed _Physical [Weapon] Recoil_ menu item**

## Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion src/d_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ void D_Display (void)
if (automapactive != AM_FULL)
y += scaledviewy;

V_DrawPatch(x, y, patch);
V_DrawPatchSH(x, y, patch); // [Nugget] HUD/menu shadows
}

// menus go directly to the screen
Expand Down
8 changes: 5 additions & 3 deletions src/st_carousel.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,17 +169,19 @@ static void DrawIcon(int x, int y, sbarelem_t *elem, weapon_icon_t icon)

byte *cr = icon.state == wpi_disabled ? cr_dark : NULL;

// [Nugget] HUD/menu shadows

if (cr && elem->tranmap)
{
V_DrawPatchTRTL(x, y, patch, cr, elem->tranmap);
V_DrawPatchTRTLSH(x, y, patch, cr, elem->tranmap);
}
else if (elem->tranmap)
{
V_DrawPatchTL(x, y, patch, elem->tranmap);
V_DrawPatchTLSH(x, y, patch, elem->tranmap);
}
else
{
V_DrawPatchTranslated(x, y, patch, cr);
V_DrawPatchTranslatedSH(x, y, patch, cr);
}
}

Expand Down

0 comments on commit 68c8379

Please sign in to comment.