• C

Hi-Res Graphics in DOS

Could anyone tell me how do I get a screen with 640*480*256,
800*600*256 or any higher resolutions? And how do I draw(lines, circles...etc.) in them?
KuosterAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

3dnowmanCommented:
You want to get at the VESA specs, or more simply to look at the SciTech MGL API.

See:

http://www.scitechsoft.com/dp_mgl.html

0
laeuchliCommented:
you can change the screen res in dos with this code. This will change the res to 1280x1024
changeres:

mov ax,4F02h

mov bx,107h

int 0x10

RET
I am not sure how you would draw stuff in dos, I would guess the you would do it by drawing pixel by pixel.
0
KuosterAuthor Commented:
I don't think I'd use that... ^^'
0
INTRODUCING: WatchGuard's New MFA Solution

WatchGuard is proud to announce the launch of AuthPoint, a powerful, yet simple, Cloud-based MFA service designed to eliminate the vulnerabilities that put your data, systems, and users at risk.

laeuchliCommented:
well thats how you change the screen res in dos. I suppose you could write a c function like this that would work.
void changeres()
{
//Changes the res to 1280x1024
__asm{
mov ax,4F02h
mov bx,107h
int 0x10
}
}
thats the only way to do it, other then finding another dos lib that would do exactly the same thing.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
KuosterAuthor Commented:
Problem, how do I draw in them??
0
Lab_RatCommented:
You will find that any mode besides #19 (320x200x256) has the screen memory broken into blocks, not just a contigeous 64k block of memory starting at A000h like the mode 19 has. I can't say right now where these blocks are but I'll try and have a look.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C

From novice to tech pro — start learning today.