From 27e590f716f063f603e170f6fc9dd66b8fc099ff Mon Sep 17 00:00:00 2001 From: Mel Date: Fri, 7 Jul 2023 23:06:04 +0200 Subject: Fix Util::ImageViewer on aspect other than 1 --- src/Util/ImageViewer.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Util/ImageViewer.hpp') diff --git a/src/Util/ImageViewer.hpp b/src/Util/ImageViewer.hpp index 59c0bf3..16ef2dd 100644 --- a/src/Util/ImageViewer.hpp +++ b/src/Util/ImageViewer.hpp @@ -16,6 +16,8 @@ public: private: static GFX::Mesh create_mesh(float window_aspect, uint32_t image_width, uint32_t image_height); + static constexpr float view_size = 1000.0f; + static const char* vertex; static const char* fragment; -- cgit 1.4.1