Make sure love.window.getSafeArea is in DPI-scaled units on all platforms.

This commit is contained in:
Alex Szpakowski
2018-12-26 10:36:41 -04:00
parent d41aca836e
commit f504ace6cd
+3 -1
View File
@@ -850,7 +850,9 @@ Rect Window::getSafeArea() const
return love::ios::getSafeArea(window);
#endif
return {0, 0, getWidth(), getHeight()};
double dw, dh;
fromPixels(pixelWidth, pixelHeight, dw, dh);
return {0, 0, (int) dw, (int) dh};
}
bool Window::isOpen() const