video/windows/SDL_surface_utils.c: replace ZeroMemory() with SDL_zero()

This commit is contained in:
Ozkan Sezer 2024-12-27 06:03:37 +03:00
parent a773558517
commit cd1bb6247b

View file

@ -36,7 +36,7 @@ HICON CreateIconFromSurface(SDL_Surface *surface)
const int height = s->h;
BITMAPINFO bmpInfo;
ZeroMemory(&bmpInfo, sizeof(BITMAPINFO));
SDL_zero(bmpInfo);
bmpInfo.bmiHeader.biSize = sizeof(BITMAPINFOHEADER);
bmpInfo.bmiHeader.biWidth = width;
bmpInfo.bmiHeader.biHeight = -height; /* Top-down bitmap */