Attempt at fixing scissor scaling issue on ios ( #8300 )

This commit is contained in:
Henrik Rydgård committed 2015-12-24 23:32:24 +01:00
1 parent ff98e91862
commit 7eb662fc6b
1 file changed
+2 -1
+2 -1
View File
@@ -160,11 +160,12 @@ ViewController* sharedViewController;
g_dpi_scale = 240.0f / (float)g_dpi;
pixel_xres = size.width * scale;
pixel_yres = size.height * scale;
pixel_in_dps = (float)pixel_xres / (float)dp_xres;
dp_xres = pixel_xres * g_dpi_scale;
dp_yres = pixel_yres * g_dpi_scale;
pixel_in_dps = (float)pixel_xres / (float)dp_xres;
NativeInitGraphics();
dp_xscale = (float)dp_xres / (float)pixel_xres;