Skip to content

Commit

Permalink
fixed some problems
Browse files Browse the repository at this point in the history
  • Loading branch information
dmccoystephenson authored Feb 4, 2020
1 parent 75a8ef3 commit d29ce47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions environmentTest2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ int main(int argc, char* args[]) {
// initialize
environment.init();

// set font size
environment.setFontSize(32);

// load media
environment.loadMedia();

// set font size
environment.setFontSize(32);

Text myText;
SDL_Color textColor = {0x00, 0x00, 0x00, 0xFF};
myText.init(25, 25, environment.getFont(), environment.getRenderer(), "Environment Test 2:", textColor);
Expand All @@ -31,7 +31,7 @@ int main(int argc, char* args[]) {
// main loop
while (environment.isRunning()) {
while (environment.pollEvent() != 0) {
if (environment.getEvent().type == SDL_QUIT) {
if (environment.getEvent()->type == SDL_QUIT) {
environment.setRunning(false);
}
}
Expand Down
Binary file modified environmentTest2.exe
Binary file not shown.

0 comments on commit d29ce47

Please sign in to comment.