Category : C Source Code
Archive   : RXGRAPH.ZIP
Filename : DRAWBOX.REX

 
Output of file : DRAWBOX.REX contained in archive : RXGRAPH.ZIP
/* */
arg x1, y1, x2, y2, attr
mode=get_mode()
select
when mode=4 | mode=5 then max_x=219
when mode=6 then max_x=639
otherwise
say 'DRAWBOX.REX: Error - not in valid graphics mode'
exit
end
if attr='' then attr=1
topleftx=x1*8
toplefty=y1*8
bottomrightx=x2*8+7
bottomrighty=y2*8+7
if topleftx>0 then topleftx=topleftx-1
if toplefty>0 then toplefty=toplefty-1
if bottomrightx if bottomrighty<199 then bottomrighty=bottomrighty+1
call draw_line topleftx, toplefty, topleftx, bottomrighty, attr
call draw_line topleftx, toplefty, bottomrightx, toplefty, attr
call draw_line bottomrightx, bottomrighty, bottomrightx, toplefty, attr
call draw_line bottomrightx, bottomrighty, topleftx, bottomrighty, attr
return


  3 Responses to “Category : C Source Code
Archive   : RXGRAPH.ZIP
Filename : DRAWBOX.REX

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/