Screen - 1024x768x32

Posted By: MaxF

Screen - 1024x768x32 - 04/27/03 02:10

Hi

How can I set in code following as default

1024x768x32

I tryed the VIDEO_MODE, video_depth but the only way I can do it without droping the colour to 16bit is as follows:

1) Run level
2) press ALT & ENTER
3) press F5 until I see "1024x768x32"

How can I set this so 1024x768x32 is the default, please help.
Posted By: Anonymous

Re: Screen - 1024x768x32 - 04/27/03 02:34

This question does not seem to be advanced to me but to have it in full-screen with 1024x768x32, do the following:

code:
 
var video_mode = 8; // Video mode at 1024x768
var video_depth = 32; // Video depth at 32-Bit color
var video_screen = 1; // Run in full screen mode.


Posted By: MaxF

Re: Screen - 1024x768x32 - 04/27/03 03:59

Hi

I tryed that code, it's the same has mine,
but has I said, it drop the colour to 16 bit...

Do you know why it's doing this?
Posted By: Juff

Re: Screen - 1024x768x32 - 04/27/03 04:03

do you have A6, I think only A6 has 32-bit colour
Posted By: MaxF

Re: Screen - 1024x768x32 - 04/27/03 04:09

Hi

Yes and my video card is a VERY good one, so I don't know whats wrong.
Posted By: Anonymous

Re: Screen - 1024x768x32 - 04/27/03 06:27

Do you have the display properties set to 32-Bit?

 -
Posted By: Anonymous

Re: Screen - 1024x768x32 - 04/27/03 12:03

quote:
Do you have the display properties set to 32-Bit?
That shouldn't matter unless you are using windowed mode (which he isn't)

Are you sure that that is only part of your code in which those variables are set? (i.e., video_depth isn't set to 16 earlier in the code)
Posted By: MaxF

Re: Screen - 1024x768x32 - 04/28/03 02:37

Hi

My code is set to 16bit and my setting on the desktop are rigth.
Posted By: MaxF

Re: Screen - 1024x768x32 - 04/28/03 02:38

Hi

I mean 32bit, everything is set to 32bit.

I don't understand why it's do it.
Posted By: Anonymous

Re: Screen - 1024x768x32 - 04/28/03 15:08

Try setting a breakpoint in your code after the initialization and check the videomode and videodepth variables.
If you plan on running @ 1024x768x32/Fullscreen, make sure there is enough free memory (actually setting the desktop to 16 bit can help in this case, while it hurts when running in windowed mode). Next thing of course would be checking the A6 startup screen (what kind of video device was detected?) and updating your video card drivers.
Posted By: Anonymous

Re: Screen - 1024x768x32 - 05/13/03 23:50

I've had problems displaying 32 bit with A5 Commercial edition. Horizons and terrain textures always showed up with bands. Then I discovered that using .tga images, with an alpha channel, and I have 32 bit display working. The video-mode settings do nada. Using .tga seems to work for me.
© 2024 lite-C Forums