Scaling Windows

BlitzPlus Forums/BlitzPlus Programming/Scaling Windows

Moore(Posted 2007) [#1]
Ok... When I resize the window... I resize a canvas in the window to fit it and then render the image in the canvas over again. BUT when I do the image in the canvas is scaled to fit the canvas. Is there a way to block this?


Phil Newton(Posted 2007) [#2]
I've not found a way to do this, so I just free the canvas and create a new one at the right size to fill its place when the parent window is resized. It's annoying, but most of the time the flicker isn't noticeable from doing this.


Andres(Posted 2007) [#3]
Don't resize the canvas, but recreate it.


William Drescher(Posted 2007) [#4]
You can also make the canvas the size of the desktop screen (eg the screen res) and then lock it in top left and only draw to the width and hieght of the window instead of the canvas.