Skip to content

Commit

Permalink
Events are actually init'd by default, thanks @AMDmi3
Browse files Browse the repository at this point in the history
  • Loading branch information
Twinklebear committed Jan 19, 2015
1 parent 541dfda commit 495d256
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Lesson4/src/main.cpp
Expand Up @@ -68,7 +68,7 @@ void renderTexture(SDL_Texture *tex, SDL_Renderer *ren, int x, int y){

int main(int, char**){
//Start up SDL and make sure it went ok
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_EVENTS) != 0){
if (SDL_Init(SDL_INIT_VIDEO) != 0){
logSDLError(std::cout, "SDL_Init");
return 1;
}
Expand Down
2 changes: 1 addition & 1 deletion Lesson5/src/main.cpp
Expand Up @@ -72,7 +72,7 @@ void renderTexture(SDL_Texture *tex, SDL_Renderer *ren, int x, int y, SDL_Rect *

int main(int, char**){
//Start up SDL and make sure it went ok
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_EVENTS) != 0){
if (SDL_Init(SDL_INIT_VIDEO) != 0){
logSDLError(std::cout, "SDL_Init");
return 1;
}
Expand Down
2 changes: 1 addition & 1 deletion Lesson6/src/main.cpp
Expand Up @@ -94,7 +94,7 @@ SDL_Texture* renderText(const std::string &message, const std::string &fontFile,

int main(int, char**){
//Start up SDL and make sure it went ok
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_EVENTS) != 0){
if (SDL_Init(SDL_INIT_VIDEO) != 0){
logSDLError(std::cout, "SDL_Init");
return 1;
}
Expand Down

0 comments on commit 495d256

Please sign in to comment.