Page 1 of 1
[COMPLETED 0.78.0] Resolutions
Posted: Wed Nov 05, 2008 2:58 pm
by DiViNiTY
more Resolutions + Widescreen Resolutions
menu stretch to Fullscreen in all Resolutions
videos should play Fullscreen in all Resolutions
more demos included
No resolution limit
Posted: Thu Oct 29, 2009 5:27 am
by zany_001
Can the res limit be removed please? Paradoxnj said it was easy to change.
Re: No resolution limit
Posted: Thu Oct 29, 2009 3:41 pm
by paradoxnj
In D3D_main.cpp in the D3DDrv7x change the following function:
Code: Select all
static HRESULT CALLBACK EnumDisplayModesCallback(LPDDSURFACEDESC2 pddsd, LPVOID lpContext)
{
App_Mode *pMode;
if (!pddsd)
return DDENUMRET_OK;
if (pddsd->dwWidth > 1280 || pddsd->dwHeight > 1024)
return DDENUMRET_OK;
if (AppInfo.NumModes >= MAX_APP_MODES)
return DDENUMRET_CANCEL;
pMode = &AppInfo.Modes[AppInfo.NumModes++];
// Save this mode at the end of the mode array and increment mode count
pMode->Width = pddsd->dwWidth;
pMode->Height = pddsd->dwHeight;
pMode->Bpp = pddsd->ddpfPixelFormat.dwRGBBitCount;
pMode->ThisDriverCanDo = FALSE;
return DDENUMRET_OK;
}
...by commenting out the following lines
Code: Select all
if (pddsd->dwWidth > 1280 || pddsd->dwHeight > 1024)
return DDENUMRET_OK;
... and either making AppInfo.Modes a dynamic array or increase the limit for MAX_APP_MODES.
The OpenGL driver already supports higher resolutions.
Re: No resolution limit
Posted: Fri Oct 30, 2009 5:07 am
by SV2.0
Awesome.
Re: No resolution limit
Posted: Mon Jan 04, 2010 4:58 am
by darksmaster923
Why add that to the code?
Re: No resolution limit
Posted: Mon Jan 04, 2010 5:12 am
by paradoxnj
The following code tells the driver not to enumerate any modes over 1280x1024:
Code: Select all
if (pddsd->dwWidth > 1280 || pddsd->dwHeight > 1024)
return DDENUMRET_OK;
If you want to remove the limit, you have to comment out these lines and either increase the array size or make it a dynamic array.
Re: Resolutions
Posted: Fri Feb 12, 2010 10:25 am
by Veleran
Or at least please gives us bigger screen resolution than the 1280-1024 -which is the same since 2003.
Re: Resolutions
Posted: Fri Feb 12, 2010 6:52 pm
by Allanon
If you would have read two posts down you would have seen this:
http://www.realityfactory.info/forum/vi ... f=4&t=4532
Re: Resolutions
Posted: Fri Feb 12, 2010 7:41 pm
by bernie
Yes but these people might not be able to build RF from source. They may not have the knowledge or the wherewithal to build it. RF is games without programming. The lads on here tend to be artists they need these things sorting by programmers.
Re: Resolutions
Posted: Fri Feb 12, 2010 10:18 pm
by Allanon
My point was it was already in the feature request section and they didn't have to start a new post.
Re: No resolution limit
Posted: Fri Feb 12, 2010 10:42 pm
by bernie
Sorry Allanon I hadn't noticed (My age is catching up with me). Merged.
Re: No resolution limit
Posted: Thu Apr 24, 2014 8:11 pm
by QuestOfDreams
Increased d3d driver resolution limit to 2048x1280 in version 0.78.0.0