B3D style scaling window

BlitzMax Forums/BlitzMax Programming/B3D style scaling window

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

as you resize the window the attached canvas resizes also and the graphics are automatically scaled.

I wouldn't have thought so.

On the Size event, you need to reset the viewport to the new dimensions. But this won't scale anything for you. You would need to calculate the 1:1 scale of the original dimensions to whatever was current, and then maybe call SetScale. (although SetScale isn't a true scaling function).