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 Discussion / CLS and DISPLAY MODE

Author
Message
The Dream Keeper!
21
Years of Service
User Offline
Joined: 9th Oct 2003
Location: Netherlands! HOLLAND!
Posted: 30th Jan 2004 15:44
Hey all,

I've got a problem. I'm making a kind of painting program, but if you use cls it clears out the whole screen. I don't want that. And that's not my biggest problem. I made a color maker, so you can mix your own color using red, green and blue. But i want that the color maker has a display of 1280, 1024, 32 and that the "painting field" has a display of 640, 480, 32. Is it possible or do i have to write 2 different programs?

Any help would be really aprreciated.

Thanks all,

The dream keeper!

Bring fun to life!!!!!
Emperor Baal
21
Years of Service
User Offline
Joined: 1st Dec 2003
Location: The Netherlands - Oudenbosch
Posted: 30th Jan 2004 17:04
Its not difficult to make. Just use set display mode to set the display to 1280x1024x32 and use ink rgb(0,0,0),0 + box 50,50,50+640,50+480 to "refresh" the "painting field"

If the user paints something, check if its inside the "painting field", if not, then do nothing


Quote: "
Amd 2500+ | 1024mb pc2700 | A7N8X-X | Geforce4 ti 4200 128mb
"
The Dream Keeper!
21
Years of Service
User Offline
Joined: 9th Oct 2003
Location: Netherlands! HOLLAND!
Posted: 31st Jan 2004 12:03
Think i know what you mean. I'm working on it.
I'm now going to draw o box over the color maker so that it refreshes and doens't use CLS. Then the "painting field" stays as it is

Thnx

Bring fun to life!!!!!

Login to post a reply

Server time is: 2025-05-22 16:24:51
Your offset time is: 2025-05-22 16:24:51