mirror of https://github.com/libsdl-org/SDL.git
video/windows/SDL_surface_utils.c: replace ZeroMemory() with SDL_zero()
This commit is contained in:
parent
a773558517
commit
cd1bb6247b
|
|
@ -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…
Reference in New Issue