Canvas resizing

BlitzMax Forums/MaxGUI Module/Canvas resizing

Twinprogrammer(Posted 2013) [#1]
Hey guys,

I used setgadgetlayout() to automatically resize the canvas to the window, but when this happens, the canvas will only draw the part of itself that wasn't added. Could you guys help me find out what's wrong?


jsp(Posted 2013) [#2]
As already mentioned in another post from you, use this:
SetViewport 0,0,GadgetWidth( canvas ),GadgetHeight( canvas )

to resize to the visible area, that should do the trick.


Twinprogrammer(Posted 2013) [#3]
That made it work, thanks!