Browse Source

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

Ozkan Sezer 3 months ago
parent
commit
cd1bb6247b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/video/windows/SDL_surface_utils.c

+ 1 - 1
src/video/windows/SDL_surface_utils.c

@@ -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 */