瀏覽代碼

Fixed build

Sam Lantinga 2 年之前
父節點
當前提交
cbf9012c74
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      test/testcustomcursor.c

+ 1 - 1
test/testcustomcursor.c

@@ -395,7 +395,7 @@ int main(int argc, char *argv[])
     }
 
     for (i = 0; i < SDL_NUM_SYSTEM_CURSORS; ++i) {
-        SDL_Cursor *cursor = SDL_CreateSystemCursor((SDL_SystemCursor)i);
+        cursor = SDL_CreateSystemCursor((SDL_SystemCursor)i);
         if (cursor) {
             cursors[num_cursors] = cursor;
             cursor_types[num_cursors] = i;