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 {