Merge pull request #5 from SubstituteR/opengldpi

SDL2 checking
This commit is contained in:
Riley S 2021-02-25 16:20:57 -05:00 committed by GitHub
commit a50e15effb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -1384,6 +1384,12 @@ showRaster(Raster *raster, uint32 flags)
static V2d dpiScale(float x, float y) 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; V2d v;
int w = 0; int w = 0;
int h = 0; int h = 0;
@ -1393,6 +1399,7 @@ static V2d dpiScale(float x, float y)
else else
v.set(1,1); v.set(1,1);
return v; return v;
#endif
} }
static bool32 static bool32