video/windows/SDL_surface_utils.c: replace ZeroMemory() with SDL_zero()
This commit is contained in:
parent
a773558517
commit
cd1bb6247b
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue