My approach:
if user wants cmu_graphics to handle resizing automatically for him,
then when screen resize:
draw everything using the previous code at starting width and height size
once the code gives back a pygame image scale that image to the new width and height
if user want a same aspect ratio, scale to the smallest of x-scale and y-scale and offset the image so it is centred
I implemented the above faithfully but unfortunately it didn't work as I excepted and created a bug where the screen would constantly flicker.
I feel like there is a not so complicated way to fix this but I am unsure as to what it would be.
Once fixed this would be a great new feature to merge.
Tries to address:
69
My approach: if user wants cmu_graphics to handle resizing automatically for him, then when screen resize:
I implemented the above faithfully but unfortunately it didn't work as I excepted and created a bug where the screen would constantly flicker. I feel like there is a not so complicated way to fix this but I am unsure as to what it would be. Once fixed this would be a great new feature to merge.