Thread View: borland.public.cppbuilder.multimedia
2 messages
2 total messages
Started by George
Fri, 14 Nov 2003 09:52
Change Resolution
Author: George
Date: Fri, 14 Nov 2003 09:52
Date: Fri, 14 Nov 2003 09:52
26 lines
1606 bytes
1606 bytes
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!
Re: Change Resolution
Author: Rodrigo G�mez
Date: Wed, 26 Nov 2003 15:50
Date: Wed, 26 Nov 2003 15:50
40 lines
2195 bytes
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! > >
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads