(11-09-2022, 05:58 PM)SMcNeill Wrote:(11-09-2022, 02:05 PM)mnrvovrfc Wrote: If two parameters are given to "_NEWIMAGE()" and any graphics command is called (in the program below "PSET") the program gives an error box which, if not taken seriously, the program hangs for a moment then terminates, writing on the terminal "killed".
This isn't as "broken" as you assume.
A newimage, without any third parameter, defaults to a SCREEN 0 image -- which is text only. Trying any graphics command in a text-only screen will generate that error box, but what probably causes it to hang up and then terminate is attemping to create an 800x600 text screen!Code: (Select All)Screen _NewImage(80, 40)
Print _Width, _Height, _PixelSize
800 characters wide, 600 rows high.. I can see where that would push the limits of what's possible and terminate without much warning.
Oh yeah, it's when I try and use 1200 pixels wide and whatever high and forget the 3rd that's when it gets bad!
b = b + ...