Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Cls messing up with box but not other draw commands? :S

Author
Message
C0wbox
20
Years of Service
User Offline
Joined: 6th Jun 2006
Location: 0,50,-150
Posted: 29th Apr 2010 16:50 Edited at: 29th Apr 2010 16:55

Ok that's the code I was playing around with when I found this. Surely clsing before drawing a box should make all previously drawn boxes disapear? - It only does this if you add a command like circle (commented out)

This seems kind of random and probably an undesired affect, as you'd have to use
box 0,0,screen width(),screen height(),rgb(0,0,0),rgb(0,0,0),rgb(0,0,0),rgb(0,0,0)
to clear the screen properly when it's doing this...

Even simpler example of it breaking:

It should remove the box, no? xD

TDK
Retired Moderator
23
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 29th Apr 2010 17:50 Edited at: 29th Apr 2010 18:03
Try a 0 (zero) on the end of CLS:

box 4,4,20,20
wait key
cls 0
wait key


It's all related to the lack of Sync and DBPro's double-buffering of screen memory I think.

The first example is strange... but works perfectly in DBC!

TDK

C0wbox
20
Years of Service
User Offline
Joined: 6th Jun 2006
Location: 0,50,-150
Posted: 29th Apr 2010 18:46
xD How rare.

Just thought I'd post it here to check before I made a bug report and made a silly out of myself.

Indicium
18
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 29th Apr 2010 20:08
Both work fine for me. Using Lastest version.

Rawwrr. Sig Fail.
Newcastle is awesome
C0wbox
20
Years of Service
User Offline
Joined: 6th Jun 2006
Location: 0,50,-150
Posted: 29th Apr 2010 20:30
Bawww, I think I'm like 1 down from the latest version.

Login to post a reply

Server time is: 2026-07-26 04:27:03
Your offset time is: 2026-07-26 04:27:03