Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Problem if current screen width isn't 80 chars (Announce)

posted by nidud E-mail, Norway, 19.08.2010, 22:48

> > The program should adapt to the current screen setting if this is not
> set.
>
> This works as far as the screen width is 80.
>
> Perhaps it's possible to improve the current behavior? My suggestion is:
>
> 1. if screen width is < 80, reset video mode to 3 ( or 7 ).

This is the default setting.

> 2. if screen width is > 80 and text mode is on, use it.
>
> On my web site there is a package, SETMXX.ZIP, which contains a tool
> setm37.exe. This tools uses VESA mode 0x102 (800x600x4) to create a 100x37
> text mode resolution. Works with a lot of cards, so there's a chance you
> can use it for testing.

I can?t implement functions that reprogram the graphics card in this way, and I could line up a long list of argument why, but the short answer will be: if you want to implement this you have to do it yourself.

Most of the console function calls @rcsprc (src/clib/console/rect/_rcsprc.asm) to create a screen pointer from x, y (bl, bh), but some functions are hard coded and add 2*80 to get the offset of the next line.

 

Complete thread:

Back to the forum
Board view  Mix view
22780 Postings in 2123 Threads, 402 registered users (0 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum