This is the minimal change I could figure out to make (other than completely deleting the set_inner_size calls) which lets me set a specific canvas size, and have the canvas not cover the entire browser window.
I ended up adding size to SurfaceSettings, as that’s the only type available both during Window setup and WindowedContext setup. I don‘t think this is a great API change by any means; just a concrete starting point.
This is the minimal change I could figure out to make (other than completely deleting the
set_inner_size
calls) which lets me set a specific canvas size, and have the canvas not cover the entire browser window.I ended up adding
size
toSurfaceSettings
, as that’s the only type available both duringWindow
setup andWindowedContext
setup. I don‘t think this is a great API change by any means; just a concrete starting point.Closes #339.