Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
My TinyPTC Extension Library (WARNING: LARGE IMAGES)
#45
Code:
'initialisation
const scr_width = 320
const scr_height = 240
'$include: "ptcxl.bi"
'$DYNAMIC
if ptc_init("PTC TEST") <> 1 then system
ptc_clsx 0
ptc_refresh
'main loop
do
    for i% = 0 to 10000
        z = int(rnd*255)
        ptc_pset(int(rnd*320),int(rnd*240),z,z,z)
    next i%
    ptc_refresh
loop until inkey$ <> ""
PTC_CLOSE

That's the whole program (just a test program really). It doesn't matter what I change the width & height to, the window is always a little out. I'm using XP Pro and vongodric's IDE.
8% of the teenage population smokes or has smoked pot. If you're one of the 2% who hasn't, copy and paste this in your signature.
Reply


Messages In This Thread
My TinyPTC Extension Library (WARNING: LARGE IMAGES) - by marinedalek - 12-27-2004, 04:04 AM
Request... - by Ryan - 12-27-2004, 05:41 AM
Re: Request... - by Dr_Davenstein - 12-29-2004, 03:45 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)