Skip to content

Commit 0e10c4b

Browse files
committed
revert dpi scale and screen bounds
1 parent 3fca36e commit 0e10c4b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

source/re/gfx/window.d

+3-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ class Window {
5050
}
5151

5252
public @property float dpi_scale() {
53-
return raylib.GetWindowScaleDPI().x;
53+
auto scale_dpi_vec = raylib.GetWindowScaleDPI();
54+
return max(scale_dpi_vec.x, scale_dpi_vec.y);
5455
}
5556

5657
public @property int screen_width() {
@@ -62,7 +63,7 @@ class Window {
6263
}
6364

6465
public @property Rectangle screen_bounds() {
65-
return Rectangle(0, 0, screen_width * Core.window.dpi_scale, screen_height * Core.window.dpi_scale);
66+
return Rectangle(0, 0, screen_width, screen_height);
6667
}
6768

6869
public @property int render_width() {

0 commit comments

Comments
 (0)