1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

scanner: no longer allow 1. float literals (#11301)

This commit is contained in:
yuyi
2021-08-25 19:39:37 +08:00
committed by GitHub
parent ee961b26e7
commit 4d078edb72
11 changed files with 30 additions and 19 deletions

View File

@@ -745,7 +745,7 @@ pub fn dpi_scale() f32 {
// NB: on older X11, `Xft.dpi` from ~/.Xresources, that sokol uses,
// may not be set which leads to sapp.dpi_scale reporting incorrectly 0.0
if s < 0.1 {
s = 1.
s = 1.0
}
return s
}