Decided to unconditionally redraw everything on a window resize on Mac OS X. Now to add TODOs for the other platforms to see if we should do the same.
This commit is contained in:
parent
ce14390eff
commit
24cac41de6
|
@ -41,7 +41,7 @@ func appDelegate_windowDidResize(win C.id) {
|
|||
r := C.frame(wincv)
|
||||
// winheight is used here because (0,0) is the bottom-left corner, not the top-left corner
|
||||
s.doResize(0, 0, int(r.width), int(r.height), int(r.height))
|
||||
C.display(win) // redraw everything; TODO only if resize() was called?
|
||||
C.display(win) // redraw everything
|
||||
}
|
||||
|
||||
//export appDelegate_buttonClicked
|
||||
|
|
Loading…
Reference in New Issue