mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
gg: window_size_real_pixels that for 3D without dpi scaling (#9004)
This commit is contained in:
@@ -760,6 +760,11 @@ pub fn window_size() Size {
|
||||
return Size{int(sapp.width() / s), int(sapp.height() / s)}
|
||||
}
|
||||
|
||||
// window_size_real_pixels returns the `Size` of the active window without scale
|
||||
pub fn window_size_real_pixels() Size {
|
||||
return Size{sapp.width(), sapp.height()}
|
||||
}
|
||||
|
||||
pub fn dpi_scale() f32 {
|
||||
mut s := sapp.dpi_scale()
|
||||
$if android {
|
||||
|
||||
Reference in New Issue
Block a user