app/internal/window: drop zero-sized redraws in WebAssembly

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-11-04 18:45:10 +01:00
parent 4ac3a7fd84
commit d478bb2bc5
+1 -1
View File
@@ -339,7 +339,7 @@ func (w *window) ShowTextInput(show bool) {
func (w *window) draw(sync bool) {
width, height, scale, cfg := w.config()
if cfg == (config{}) {
if cfg == (config{}) || width == 0 || height == 0 {
return
}
w.mu.Lock()