mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
app/internal/window: (Windows) don't send zero-sized draw requests
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -332,6 +332,9 @@ func (w *window) draw(sync bool) {
|
||||
windows.GetClientRect(w.hwnd, &r)
|
||||
w.width = int(r.Right - r.Left)
|
||||
w.height = int(r.Bottom - r.Top)
|
||||
if w.width == 0 || w.height == 0 {
|
||||
return
|
||||
}
|
||||
cfg := configForDC()
|
||||
cfg.now = time.Now()
|
||||
w.w.Event(FrameEvent{
|
||||
|
||||
Reference in New Issue
Block a user