Skip to content

Commit

Permalink
Don't rotate the logo on the loadscreen.
Browse files Browse the repository at this point in the history
That was some test code committed by mistake.
  • Loading branch information
lipk committed Jun 17, 2014
1 parent 8c2a293 commit 6181499
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/loadscreen.cpp
Expand Up @@ -136,8 +136,7 @@ void loadscreen::draw_screen(const std::string &text)

// Draw logo if it was successfully loaded.
#if SDL_VERSION_ATLEAST(2,0,0)
static int angle = 0;
if (!logo_texture_.null() /*&& !logo_drawn_*/) {
if (!logo_texture_.null() && !logo_drawn_) {
int x = (screen_.getx () - logo_texture_.width()) / 2;
int y = ((scry - logo_texture_.height()) / 2) - pbh;

Expand All @@ -151,7 +150,6 @@ void loadscreen::draw_screen(const std::string &text)
}
}
logo_drawn_ = true;
logo_texture_.set_rotation(angle+=3);
}
#else
if (logo_surface_ && !logo_drawn_) {
Expand Down

0 comments on commit 6181499

Please sign in to comment.