This PR adds checks to init to make sure that the display size and offset are valid. I've used panics instead of adding a new InitError variant, because the check would only fail if the program contains a bug and the other InitErrors are runtime errors.
This PR adds checks to
init
to make sure that the display size and offset are valid. I've used panics instead of adding a newInitError
variant, because the check would only fail if the program contains a bug and the otherInitError
s are runtime errors.