Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

NANOSCR environment variable (Announce)

posted by georgpotthast Homepage, Germany, 17.11.2011, 08:38
(edited by georgpotthast on 17.11.2011, 12:24)

Doug,

thank you for your comments on the Dillo port!

yes, the nanoscr variable is documented in another document of mine:

Quote:

There is an environment variable which Nano-X reads and which allows to set the screen resolution and pixel type. This variable is called "NANOSCR" which is defined as:

NANOSCR=[SCREEN_WIDTH] [SCREEN_HEIGHT] [SCREEN_PIXTYPE]

For SCREEN_PIXTYPE the following values are valid: 8888 for 32bit, 888 for 24bit, 565 for 16bit and 8 for 8bit. An example would be:
"set NANOSCR=800 600 565" for 800x660 and TRUECOLOR565

The strange numbers are the values nano-x uses internally and could be extended to even more pixtypes. *AND* 8 bit does not work since I have problems with palette mode. 24 bit is not supported by my graphics card.

I usually set it to 16 bit to be able to make screenshots with SNARF.

The screen_width and screen_height have to be set to values supported by the VESA mode of your graphics card.

I have to add that to the User Guide ;-)

Regards

Georg Potthast



> Greg -
>
> First - a big note of appreciation for your work on Dillo! It's always a
> tremendous (and astonishing) thing to see DOS apps still being developed in
> 2011! (Hell, it's even good to see apps *ported* to DOS. :ok:) That's 30
> years since it's birth!
>
> Second - i actually *did* read the PDF manual! :-D And took a look at --
> and edited -- the batch file.
>
> Speaking of which, i have a question. In the batch-file line:
>
> set NANOSCR=1024 768 565
>

> it's obvious what the "1024" and "768" are for. But what does the "565"
> mean?
>
> Another big thanks for changing the code to SFNs. (LFNs, forward slashes
> in path names, and mixed-case command lines in unix ports DRIVE ME NUTZ!
> But not so nuts as to not appreciate the port.) The mouse movement is now
> much smoother too.
>
> I haven't been able to test much with Dillo, as i do not have DOS access to
> the internet setup (i'll probably be using it mostly to display local
> files). But overall, Dillo is looking good!
>
> - Doug B.

 

Complete thread:

Back to the forum
Board view  Mix view
22632 Postings in 2109 Threads, 402 registered users, 428 users online (1 registered, 427 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum