aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/QuickMedia.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index f24be55..7027ac9 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -142,7 +142,7 @@ static bool enable_vsync(Display *disp, Window window) {
namespace QuickMedia {
Program::Program() :
disp(nullptr),
- window(sf::VideoMode(1280, 720), "QuickMedia"),
+ window(sf::VideoMode(1280, 720), "QuickMedia", sf::Style::Default, sf::ContextSettings(0, 0, 0, 3, 3)),
window_size(1280, 720),
body(nullptr),
current_plugin(nullptr),
@@ -1292,7 +1292,7 @@ namespace QuickMedia {
if(!current_plugin->is_image_board()) {
related_media_window_size.x = window_size.x * RELATED_MEDIA_WINDOW_WIDTH;
related_media_window_size.y = window_size.y;
- related_media_window = std::make_unique<sf::RenderWindow>(sf::VideoMode(related_media_window_size.x, related_media_window_size.y), "", 0);
+ related_media_window = std::make_unique<sf::RenderWindow>(sf::VideoMode(related_media_window_size.x, related_media_window_size.y), "", 0, sf::ContextSettings(0, 0, 0, 3, 3));
related_media_window->setFramerateLimit(0);
if(!enable_vsync(disp, related_media_window->getSystemHandle())) {
fprintf(stderr, "Failed to enable vsync, fallback to frame limiting\n");