We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2888938 commit 077cacfCopy full SHA for 077cacf
glfw.go
@@ -210,9 +210,8 @@ func (m *windowManager) glfwRefreshCallback(window *glfw.Window) {
210
if width == 0 {
211
fmt.Println("go-flutter: Cannot calculate pixelsPerScreenCoordinate for zero-width window.")
212
return
213
- } else {
214
- m.pixelsPerScreenCoordinate = float64(widthPx) / float64(width)
215
}
+ m.pixelsPerScreenCoordinate = float64(widthPx) / float64(width)
216
217
var pixelRatio float64
218
if m.forcedPixelRatio != 0 {
0 commit comments