From 85c5df23cf81cdcbd955ade17dbbcda5e0b8d60d Mon Sep 17 00:00:00 2001 From: Larpon Date: Fri, 29 Jan 2021 11:11:03 +0100 Subject: [PATCH] gg: add window_size() function (#8409) --- vlib/gg/gg.v | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vlib/gg/gg.v b/vlib/gg/gg.v index 2349455aa3..23ce08bb47 100644 --- a/vlib/gg/gg.v +++ b/vlib/gg/gg.v @@ -660,6 +660,11 @@ pub fn screen_size() Size { return Size{} } +// window_size returns the `Size` of the active window +pub fn window_size() Size { + return Size{sapp.width(), sapp.height()} +} + fn C.WaitMessage() /*