Skip to content

Commit

Permalink
Version 1.0.0, add vsync
Browse files Browse the repository at this point in the history
  • Loading branch information
kivattt committed Oct 30, 2024
1 parent 9d17711 commit 436272d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.ARW.xmp
*.ARW
arw-preview
arw-preview.o
6 changes: 5 additions & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@

using std::string;

const string version = "1.0.0";

void usage(string programName) {
std::cout << "Usage: " << programName << " [.ARW file]\n";
std::cout << "Usage: " << programName << " [.ARW file]" << std::endl;
std::cout << "arw-preview " << version << std::endl;
}

void cleanup(int fd, char *data, int fileSize) {
Expand Down Expand Up @@ -219,6 +222,7 @@ int main(int argc, char *argv[]) {
previewSprite.setTexture(previewTexture);

sf::RenderWindow window(sf::VideoMode(WIDTH, HEIGHT), base_path(argv[1]));
window.setVerticalSyncEnabled(true);

while (window.isOpen()) {
sf::Event event;
Expand Down

0 comments on commit 436272d

Please sign in to comment.