srctree

Robin Linden parent 5a711689 f32f32e4
browser/gui: Default to the SFML gfx backend

This is temporary, to be reverted once the OpenGL gfx backend handleseverything the SFML one does.

inlinesplit
browser/gui/app.cpp added: 7, removed: 7, total 0
@@ -5,7 +5,7 @@
#include "browser/gui/app.h"
 
#include "dom/dom.h"
#include "gfx/sfml_painter.h"
#include "gfx/opengl_painter.h"
#include "render/render.h"
#include "uri/uri.h"
 
 
browser/gui/app.h added: 7, removed: 7, total 0
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2021 Robin Lindén <dev@robinlinden.eu>
// SPDX-FileCopyrightText: 2021-2022 Robin Lindén <dev@robinlinden.eu>
//
// SPDX-License-Identifier: BSD-2-Clause
 
@@ -8,7 +8,7 @@
#include "browser/engine.h"
#include "dom/dom.h"
#include "gfx/ipainter.h"
#include "gfx/opengl_painter.h"
#include "gfx/sfml_painter.h"
#include "layout/layout.h"
 
#include <SFML/Graphics/RenderWindow.hpp>
@@ -46,8 +46,8 @@ private:
Sfml,
};
 
Painter selected_painter_{Painter::OpenGL};
std::unique_ptr<gfx::IPainter> painter_{std::make_unique<gfx::OpenGLPainter>()};
Painter selected_painter_{Painter::Sfml};
std::unique_ptr<gfx::IPainter> painter_{std::make_unique<gfx::SfmlPainter>(window_)};
 
// The scroll offset is the opposite of the current translation of the web page.
// When we scroll "down", the web page is translated "up".