Skip to content

Commit

Permalink
vector: make sure pBurnDraw exists before memsetting it
Browse files Browse the repository at this point in the history
attempt at properly fixing #1928
  • Loading branch information
barbudreadmon authored Dec 20, 2024
1 parent a90f64e commit c446266
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/burn/vector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ void draw_vector(UINT32 *palette)

// copy to the screen, only draw pixels that aren't black
// should be safe for any bit depth with putpix
if (pBurnDraw != NULL)
{
memset (pBurnDraw, 0, nScreenWidth * nScreenHeight * nBurnBpp);

Expand Down

0 comments on commit c446266

Please sign in to comment.