mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 18:05:35 +00:00
ui/app: rename DrawEvent to UpdateEvent and Window.Draw to Window.Update
Window.Draw is not the right name for a method that does more than just drawing. Rename to Update instead, and rename the DrawEvent accordingly for symmetry. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -1050,7 +1050,7 @@ func (w *window) draw(sync bool) {
|
||||
C.gio_wl_callback_add_listener(w.lastFrameCallback, unsafe.Pointer(w.surf))
|
||||
}
|
||||
cfg.now = time.Now()
|
||||
w.w.event(DrawEvent{
|
||||
w.w.event(UpdateEvent{
|
||||
Size: image.Point{
|
||||
X: width,
|
||||
Y: height,
|
||||
|
||||
Reference in New Issue
Block a user