From 396ec95f220f69ae1d1b78e5df0b4f1fda87014b Mon Sep 17 00:00:00 2001 From: Riley S Date: Thu, 25 Feb 2021 16:20:15 -0500 Subject: [PATCH] SDL2 checking --- src/gl/gl3device.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/gl/gl3device.cpp b/src/gl/gl3device.cpp index 47e54f8..7cdab78 100644 --- a/src/gl/gl3device.cpp +++ b/src/gl/gl3device.cpp @@ -1384,6 +1384,12 @@ showRaster(Raster *raster, uint32 flags) static V2d dpiScale(float x, float y) { +//TODO SDL2 version of this +#ifdef LIBRW_SDL2 + V2d v; + v.set(1.f, 1.f); + return v; +#else V2d v; int w = 0; int h = 0; @@ -1393,6 +1399,7 @@ static V2d dpiScale(float x, float y) else v.set(1,1); return v; +#endif } static bool32