diff --git a/vlib/gg/gg.v b/vlib/gg/gg.v index 75f15ba03a..9c46096fe2 100644 --- a/vlib/gg/gg.v +++ b/vlib/gg/gg.v @@ -709,7 +709,8 @@ pub fn screen_size() Size { // window_size returns the `Size` of the active window pub fn window_size() Size { - return Size{sapp.width(), sapp.height()} + s := sapp.dpi_scale() + return Size{int(sapp.width() / s), int(sapp.height() / s)} } fn C.WaitMessage()