We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 146 - video mode set monitor into 85hz overdrive.
Summary: video mode set monitor into 85hz overdrive.
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 1.2.9
Hardware: x86 Windows (XP)
: P2 blocker
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-21 08:21 UTC by graham
Modified: 2006-03-09 10:17 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description graham 2006-02-21 08:21:39 UTC
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;
}
Comment 1 Sam Lantinga 2006-02-21 17:25:03 UTC
(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
Comment 2 Sam Lantinga 2006-03-09 10:17:17 UTC
This is confirmed fixed in CVS.