mirror of
https://github.com/love2d/love.git
synced 2026-08-12 16:40:57 +02:00
Make sure love.window.getSafeArea is in DPI-scaled units on all platforms.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user