Motivation / Problem / Description
Some code cleanup gathering dust.
Incidentally, it might fix the potential crash in
Checklist for review
Some things are not automated, and forgotten often. This list is a reminder for the reviewers.
…ll drawing code and moving the window/event handling to a different file. This is just a code move/rename, not a functionality change.
…de and instead simply initialise the buffer on allocation.