Skip to content

Commit

Permalink
Correct icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Gotos committed Nov 12, 2015
1 parent 933b868 commit 33c9a78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ int main()
frames = 0;
m_time = sf::Clock();
sf::RenderWindow window(sf::VideoMode(400, 480), "Cute 3DS Capture");
window.setIcon(sfml_icon.width, sfml_icon.height, sfml_icon.pixel_data);
sf::RenderWindow bottom_window;
sf::RectangleShape top_screen(sf::Vector2f(240,400));
top_screen.rotate(-90);
Expand Down Expand Up @@ -147,6 +148,7 @@ int main()
window.setView(top);
window.setSize(sf::Vector2u(400, 240));
bottom_window.create(sf::VideoMode(320, 240), "Bottom Screen Cute 3DS Capture");
bottom_window.setIcon(sfml_icon.width, sfml_icon.height, sfml_icon.pixel_data);
bottom_window.setView(bottom);
split = true;
} else {
Expand Down Expand Up @@ -245,10 +247,8 @@ int main()
}

window.clear();
window.setIcon(sfml_icon.width, sfml_icon.height, sfml_icon.pixel_data);
if(split) {
bottom_window.clear();
bottom_window.setIcon(sfml_icon.width, sfml_icon.height, sfml_icon.pixel_data);
}

if(!init) {
Expand Down

0 comments on commit 33c9a78

Please sign in to comment.