Re: [dos] trouble with image.e
- Posted by Robert Craig <rds at RAPIDEUPHORIA.COM> Jan 19, 2001
- 391 views
Colin Taylor writes: > Your example appeared correct, so I tested it > on my computer. It worked fine. Rob's example for > get_screen_char() in Library.doc (which uses {s}) > appears incorrect. Thanks. I'll fix the documentation. Tacitus writes: > overflow = length(char_attr) - 2 * (vc[VC_COLUMNS] - column + 1) > if overflow then > poke(scr_addr, char_attr[1..length(char_attr) - overflow]) > else > as i read it, the 'if' line overlooks that when overflow > is negative, it will test true. in that case, the poke line > will always be beyond bounds. > on my version, 'if overflow > 0 then' works, and > i think that's what was intended. You are correct. This bug was reported several months ago. put_screen_char() in image.e should be modified to have: if overflow > 0 then ... -- correct rather than: if overflow then ... -- wrong Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com