| Summary: | video mode set monitor into 85hz overdrive. | ||
|---|---|---|---|
| Product: | SDL | Reporter: | graham <lepidecko> |
| Component: | video | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | blocker | ||
| Priority: | P2 | ||
| Version: | 1.2.9 | ||
| Hardware: | x86 | ||
| OS: | Windows (XP) | ||
(In reply to comment #0) > When I use the 1.2.9-win32 SDL.dll to set the videomode my monitor blanks and > complains it is forced into 85hz overdrive. The refresh rate code was recently revisited in CVS. Can you try this DLL and let me know what happens? http://www.libsdl.org/cvs/SDL.dll This is confirmed fixed in CVS. |
When I use the 1.2.9-win32 SDL.dll to set the videomode my monitor blanks and complains it is forced into 85hz overdrive. When I substitute and older SDL.dll, I have no problem. (don't know the version nr of the older dll that works, but it is 220kb.) I am using a philips 170b monitor. XP OS. DevStudio 6.0 the code i use is this: #include "SDL.h" //The attributes of the screen const int SCREEN_WIDTH = 640; const int SCREEN_HEIGHT = 480; const int SCREEN_BPP = 32; #define GAMENAME "World" SDL_Surface *screen = NULL; int fullscreen = 1; int main( int argc, char* argv[] ) { //Initialize all SDL subsystems. if( SDL_Init( SDL_INIT_EVERYTHING ) == -1 ){return -1;} //Set up the screen. if(NULL ==(screen = SDL_SetVideoMode( SCREEN_WIDTH, SCREEN_HEIGHT, SCREEN_BPP, SDL_FULLSCREEN))) {return -1;} //Apply the background to the screen SDL_FillRect(screen, NULL, 0xaaaaaaaa); //Update the screen if( SDL_Flip( screen ) == -1 ){return 1;} //Wait 2 seconds SDL_Delay( 2000 ); SDL_FreeSurface(screen); //Quit SDL SDL_Quit(); // Body of the program goes here. return 0; }