From ffd54f93034492fdf65ca2a18cab919d87583235 Mon Sep 17 00:00:00 2001 From: Mark B Date: Sun, 1 Aug 2021 13:20:07 -0400 Subject: [PATCH] added a README --- README.md | 10 ++++++++++ src/main.cpp | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..7a56690 --- /dev/null +++ b/README.md @@ -0,0 +1,10 @@ +This is a test program for the SDL2 C++ lib + +To build you need to have SDL2 g++ and make installed + +Build steps + +1.git clone https://gitdab.com/Canneddonuts/SDL2_Test +2.cd SDL2_Test +3.make + diff --git a/src/main.cpp b/src/main.cpp index ff7b991..bd2ac9a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -18,7 +18,7 @@ int main( int argc, char* args[] ){ printf("Ooops SDL could not start! SDL_Error: %s\n", SDL_GetError() ); } else { //make window - window = SDL_CreateWindow( "My First SDL2 Program", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, SCREEN_WIDTH, SCREEN_HEIGHT, SDL_WINDOW_SHOWN ); + window = SDL_CreateWindow( "My First SDL2 Window", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, SCREEN_WIDTH, SCREEN_HEIGHT, SDL_WINDOW_SHOWN ); if( window == NULL ){ printf("Oh no the Window could not be made! SDL_Error: %s\n", SDL_GetError() ); } else {