🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.multimedia
Article #513

Re: Change Resolution

#513
From: Rodrigo G�mez
Date: Wed, 26 Nov 2003 15:50
40 lines
2195 bytes
I don't know if this is a typo, but you are setting dmDisplayFrequency to 75
but later talking about 70. It could be possible that 75 is not a valid
value for your monitor, so it "reverts" to the lowest setting. Have you
tryed with 70?

HTH,

-- 
Rodrigo G�mez

"George" <george@nospam.org> escribi� en el mensaje
news:3fb49782@newsgroups.borland.com...
> Hi,
>
> I'm using that code:
>
>    DEVMODE devicemode;
>    memset(&devicemode,0,sizeof(devicemode));
>    devicemode.dmBitsPerPel  = 16;
>    devicemode.dmPelsWidth   = 1280;
>    devicemode.dmPelsHeight  = 1024;
>    devicemode.dmDisplayFrequency=75;
>    devicemode.dmSize        = sizeof(devicemode);
>    devicemode.dmFields      = DM_BITSPERPEL|DM_PELSWIDTH|DM_PELSHEIGHT;
>    devicemode.dmDisplayFlags= NULL;
>    ChangeDisplaySettings(&devicemode,CDS_UPDATEREGISTRY);
>
>
>
> that must change the resolution to 1280x1024 16bits in 75Hz.
>
> It goes to 1280x1024 but it goes to 60 not to 70Hz !
> If I go manually to the Display Properties, I can switch to 70Hz without
> problems (or restart).
>
> I'm running Windows XP Pro.
>
> Thank you!
>
>
Technical Details
Message-ID: <3fc4cc3f$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed.freenet.de!194.168.4.91.MISMATCH!newspeer1-gui.server.ntli.net!ntli.net!peer01.cox.net!cox.net!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3fb49782@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10d0fc,99147ea5fbb3b978
X-Google-Attributes: gid10d0fc,public
X-Google-ArrivalTime: 2003-11-26 08:06:51 PST
From: "Rodrigo G�mez" <rgomezREMOVECAPS@PLEASEmsa.com.mx>
Newsgroups: borland.public.cppbuilder.multimedia
References: <3fb49782@newsgroups.borland.com>
Subject: Re: Change Resolution
Date: Wed, 26 Nov 2003 09:50:43 -0600
Lines: 42
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 200.95.127.46
Message-ID: <3fc4cc3f$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1069861951 200.95.127.46 (26 Nov 2003 07:52:31 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed.freenet.de!194.168.4.91.MISMATCH!newspeer1-gui.server.ntli.net!ntli.net!peer01.cox.net!cox.net!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail