SDL Win32 Fullscreen Issues

Okay, straight from init.c in a project from mine:

screen = SDL_SetVideoMode(screen_width, screen_height,

bits_per_pixel, SDL_DOUBLEBUF | SDL_HWSURFACE | (fullscreen ?
SDL_FULLSCREEN : 0));

screen_width is 640, height is 480, bpp is 32.

This works perfect in Linux. I also make Win32 binary/source releases
every week of this code as well, and on all the computers I’ve tried,
with varying versions of the Windows OS (Windows ME, Windows 2000,
Windows 98, Windows NT), the fullscreen never works. Running the program
in windowed works fine, but fullscreen crashes.

Out of curiosity … why? Does SDL Win32 not support SDL_DOUBLEBUF or
SDL_HWSURFACE or is this a known problem with SDL-1.2.3 Win32? Put
simply, it doesn’t work in fullscreen, while the Linux version works
fine.–

“Christopher Thielen” wrote in message
news:mailman.1016404265.17389.sdl at libsdl.org

Out of curiosity … why? Does SDL Win32 not support SDL_DOUBLEBUF
or
SDL_HWSURFACE or is this a known problem with SDL-1.2.3 Win32?

SDL 1.2.3 with ‘SDL_DOUBLEBUF | SDL_HWSURFACE | SDL_FULLSCREEN’ works
great under Windows.

Put
simply, it doesn’t work in fullscreen, while the Linux version works
fine.

Can you confirm that you actually get the requested settings under
Linux? Are your surfaces always locked for pixel access and unlocked
for blitting? Are you using ‘SDL_Flip’? Do you correctly handle a
return value of -2 from ‘SDL_BlitSurface’?–
Rainer Deyke | root at rainerdeyke.com | http://rainerdeyke.com

Out of curiosity … why? Does SDL Win32 not support SDL_DOUBLEBUF
or
SDL_HWSURFACE or is this a known problem with SDL-1.2.3 Win32?

Yes, I have seen that fullscreen did not work on some flavors of Windows.
If I remember right 2000 worked fine but it would not work on 98 or XP. I
could have that backwards. I did not test on Me or 95.

SDL 1.2.3 with ‘SDL_DOUBLEBUF | SDL_HWSURFACE | SDL_FULLSCREEN’ works
great under Windows.

There are several different types of “Windows”. Depends on what type you
are using._________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com

i’m using 98se and fullscreen doublebuf hwsurface works fine for me_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com

I’m using WindowsXP and SDL_FULLSCREEN|SDL_HWSURFACE doesn’t work … But
SDL_SWSURFACE is OK…

Anyway SDL_HWSURFACE doesn’t work in windowed mode too, does it work in
other Windows clones?

Regards, Pavel Kanzelsberger> ----- Original Message -----

From: Matt Monson [mailto:madprog@hotmail.com]
Sent: Saturday, March 23, 2002 4:42 PM
To: sdl at libsdl.org
Subject: Re: [SDL] SDL Win32 Fullscreen Issues

i’m using 98se and fullscreen doublebuf hwsurface works fine for me


Send and receive Hotmail on your mobile device: http://mobile.msn.com


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Okay, straight from init.c in a project from mine:

screen = SDL_SetVideoMode(screen_width, screen_height,

bits_per_pixel, SDL_DOUBLEBUF | SDL_HWSURFACE | (fullscreen ?
SDL_FULLSCREEN : 0));

screen_width is 640, height is 480, bpp is 32.

This works perfect in Linux. I also make Win32 binary/source releases
every week of this code as well, and on all the computers I’ve tried,
with varying versions of the Windows OS (Windows ME, Windows 2000,
Windows 98, Windows NT), the fullscreen never works. Running the program
in windowed works fine, but fullscreen crashes.

Most likely you are accessing the screen or a hardware surface without
locking it. It’s not a problem on Linux, because under X11 you don’t
generally get access to hardware surfaces, but if you get crashes the
first time you try to run it on Windows, that’s probably what’s happening.

-Sam Lantinga, Software Engineer, Blizzard Entertainment