瀏覽代碼

Replace hardcoded 0 by provided constant

DricomDragon 4 年之前
父節點
當前提交
1be40fc39a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      main.cpp

+ 1 - 1
main.cpp

@@ -57,7 +57,7 @@ int main()
 		// [3.3] Draw phase
 		SDL_FillRect(screen, 0, SDL_MapRGB(screen->format, 0, 255, 255));
 
-		SDL_BlitSurface(grass, 0x0, screen, 0x0);
+		SDL_BlitSurface(grass, NULL, screen, NULL);
 
 		SDL_Flip(screen);