_NEWIMAGE() should be fixed to always take 3 parms
#8
(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.  Wink

Code: (Select All)
Screen _NewImage(80, 40)

Print _Width, _Height, _PixelSize
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!

800 characters wide, 600 rows high..  I can see where that would push the limits of what's possible and terminate without much warning.  Wink
Reply


Messages In This Thread
RE: _NEWIMAGE() should be fixed to always take 3 parms - by SMcNeill - 11-09-2022, 05:58 PM



Users browsing this thread: 1 Guest(s)