• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 228
  • Last Modified:

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?
0
Kuoster
Asked:
Kuoster
1 Solution
 
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
Firewall Management 201 with Professor Wool

In this whiteboard video, Professor Wool highlights the challenges, benefits and trade-offs of utilizing zero-touch automation for security policy change management. Watch and Learn!

 
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
 
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

Featured Post

Easily manage email signatures in Office 365

Managing email signatures in Office 365 can be a challenging task if you don't have the right tool. CodeTwo Email Signatures for Office 365 will help you implement a unified email signature look, no matter what email client is used by users. Test it for free!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now