SetGadgetShape and Canvas objects

BlitzMax Forums/MaxGUI Module/SetGadgetShape and Canvas objects

Scott Shaver(Posted 2006) [#1]
It appears that there is an issue with using SetGadgetShape to enlarge a Canvas object. When drawing into the newly enlarged region of the canvas the graphics are corrupted. making the canvas smaller seems to work okay.

SetGadgetShape should probably recreate a entirely new canvas object.


skidracer(Posted 2006) [#2]
Are you calling SetViewport before the Cls in your canvas drawing code?


Scott Shaver(Posted 2006) [#3]
Good call, thanks so much!