Problem opening screen of 320x240 pixel

Hi,

I’m just writing a game using SDL.

I noticed that on Windows opening screen of 320x240
with fullscreen flag does not work correctly.
SDL creates a black fulltext screen which is not updated.

That this is not working and that SDL does not return an error is most
confusing.

On other Systems like MorphOS opening a 320x240 screen works fine.

Is there a way to get a resolution of 320x240 working on Windows?

Cheers
Gunnar

Gunnar von Boehn wrote:

Hi,

I’m just writing a game using SDL.

I noticed that on Windows opening screen of 320x240
with fullscreen flag does not work correctly.
SDL creates a black fulltext screen which is not updated.

That this is not working and that SDL does not return an error is most
confusing.

On other Systems like MorphOS opening a 320x240 screen works fine.

Is there a way to get a resolution of 320x240 working on Windows?

Do you have a (preferabily small) self-contained test program
reproducing your problem ?

Stephane

Hello !

I noticed that on Windows opening screen of 320x240
with fullscreen flag does not work correctly. SDL creates a black
fulltext screen which is not updated.

That this is not working and that SDL does not return an error is most
confusing.

On other Systems like MorphOS opening a 320x240 screen works fine.

Is there a way to get a resolution of 320x240 working on Windows?

I am coding on an oldschool game using the
resolution 320x240 with HW Surfaces, SW Surfaces
with (DirectX and WinDIB on Windows),
Linux and OSX without problems.

I am using the latest SDL CVS version,
you should test that too.

CU

Hello Gunnar,

I have never heard about standard 320x240 VGA mode. What about 320x200 ?
It should work on Windows with fullscreen flag correctly.

Greetings,On Fri, Mar 17, 2006 at 13:34 +0100, Gunnar von Boehn wrote:

Hi,

I’m just writing a game using SDL.

I noticed that on Windows opening screen of 320x240
with fullscreen flag does not work correctly.
SDL creates a black fulltext screen which is not updated.

That this is not working and that SDL does not return an error is most
confusing.

On other Systems like MorphOS opening a 320x240 screen works fine.

Is there a way to get a resolution of 320x240 working on Windows?

Cheers
Gunnar


Alexander Ellwein

Hello !

Is there a way to get a resolution of 320x240 working on Windows?

A good way to test, that this is
not a problem with your code,
edit testsprite.c that comes with SDL,
compile that with the 320x240 resolution
and then test that.

CU

<< From: “Torsten Giebl”

Hello !

Is there a way to get a resolution of 320x240 working on Windows?

A good way to test, that this is
not a problem with your code,
edit testsprite.c that comes with SDL,
compile that with the 320x240 resolution
and then test that.>>

I found windows has no probs setting up such a resolution. I currently
test
code for my pda in 240x320 resolution using dev c++ on winxp pro in 8,
16,
24, and 32 bit modes.

PennSubject: Re: [SDL] problem opening screen of 320x240 pixel

Hi,

Could you post the code you used to initialize your application and to
set a resolution?
What video driver do you use - GAPI or Windib (default is GAPI)?

Is there a way to get a resolution of 320x240 working on Windows?

A good way to test, that this is
not a problem with your code,
edit testsprite.c that comes with SDL,
compile that with the 320x240 resolution
and then test that.>>

I found windows has no probs setting up such a resolution. I currently
test
code for my pda in 240x320 resolution using dev c++ on winxp pro in 8,
16,
24, and 32 bit modes.
Best Regards,
Dmitry Yakimov.

Either have I. There is a mode called ModeX, that used to be a VGA trick. I
doubt video drivers nowadays … support this.

Matthew

Hi,

I’m just writing a game using SDL.

I noticed that on Windows opening screen of 320x240
with fullscreen flag does not work correctly.
SDL creates a black fulltext screen which is not updated.

That this is not working and that SDL does not return an error is most
confusing.

On other Systems like MorphOS opening a 320x240 screen works fine.

Is there a way to get a resolution of 320x240 working on Windows?

Cheers
Gunnar

Hello Gunnar,

I have never heard about standard 320x240 VGA mode. What about 320x200 ?
It should work on Windows with fullscreen flag correctly.

Greetings,–
Alexander Ellwein

320x240 is a pretty standard resolution nowadays. “VGA” and "ModeX"
are obsolete concepts anyway.On 3/20/06, Matt J wrote:

Either have I. There is a mode called ModeX, that used to be a VGA trick. I
doubt video drivers nowadays … support this.

Matthew

Hi,

I’m just writing a game using SDL.

I noticed that on Windows opening screen of 320x240
with fullscreen flag does not work correctly.
SDL creates a black fulltext screen which is not updated.

That this is not working and that SDL does not return an error is most
confusing.

On other Systems like MorphOS opening a 320x240 screen works fine.

Is there a way to get a resolution of 320x240 working on Windows?

Cheers
Gunnar

Hello Gunnar,

I have never heard about standard 320x240 VGA mode. What about 320x200 ?
It should work on Windows with fullscreen flag correctly.

Greetings,

Alexander Ellwein

  • SR

Thanks for all your good tips regarding the screen opening on windows.

My first Windows build was done on a friends PC using MSStudio.
I have now installed a gcc environment for Windows
using new SDL libs and the Screen of 320x240 opens fine on windows.
Maybe the reason for the screen problems where old libs where just did
something wrong? Anyway now with new libs and Gcc it work well thanks
for your help.

BTW A screen of type 320x200 shows up on windows as well
but this type of screen seems to be shorter than 200 lines.
I think its about 40 lines too short.

I’m working on a multi-os shoot-em-up constuction kit.
I’m wondering which resolutions to use will be best and which
resolutions are well supported on every OS.
Is there an overview which resolutions are supported on per OS?

Cheers

Gunnar–
http://www.greyhound-data.com/gunnar/games/