summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt3
m---------external/SDL0
-rw-r--r--src/main.c4
3 files changed, 4 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 99b7b45..c771530 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -22,6 +22,7 @@ target_link_directories(${PROJECT_NAME}
)
target_link_libraries(${PROJECT_NAME}
- SDL3::SDL3 # dynamic lib
+ SDL2::SDL2 # dynamic lib
+ #SDL3::SDL3 # dynamic lib
#SDL3::SDL3-static # static lib
)
diff --git a/external/SDL b/external/SDL
-Subproject 87c8e2b942108555f36a3ae951de9557a5b41da
+Subproject 5b904a103ad3bd58c13c82b11e32e97a91bafcf
diff --git a/src/main.c b/src/main.c
index 567492f..df1ac41 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1,7 +1,7 @@
#include <stdio.h>
#include <stdbool.h>
#include "lib/lib.h"
-#include "SDL3/SDL.h"
+#include "SDL2/SDL.h"
const int SCREEN_WIDTH = 640;
const int SCREEN_HEIGHT = 480;
@@ -35,7 +35,7 @@ main()
{
screenSurface = SDL_GetWindowSurface(window);
- SDL_FillSurfaceRect(
+ SDL_FillRect(
screenSurface,
NULL,
SDL_MapRGB(screenSurface->format, 0xFF, 0xFF, 0xFF)