[COMPLETED 0.78.0] Resolutions

Post your Feature Requests here...
Post Reply
DiViNiTY
Posts: 10
Joined: Mon Oct 02, 2006 6:12 pm
Contact:

[COMPLETED 0.78.0] Resolutions

Post by DiViNiTY » Wed Nov 05, 2008 2:58 pm

more Resolutions + Widescreen Resolutions
menu stretch to Fullscreen in all Resolutions
videos should play Fullscreen in all Resolutions
more demos included

User avatar
zany_001
Posts: 1047
Joined: Fri Mar 02, 2007 8:36 am
Location: Aotearoa

No resolution limit

Post by zany_001 » Thu Oct 29, 2009 5:27 am

Can the res limit be removed please? Paradoxnj said it was easy to change.
Once I was sad, and I stopped being sad and was awesome instead.
True story.

User avatar
paradoxnj
RF2 Dev Team
Posts: 1328
Joined: Wed Mar 01, 2006 7:37 pm
Location: Brick, NJ
Contact:

Re: No resolution limit

Post by paradoxnj » Thu Oct 29, 2009 3:41 pm

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.
Many Bothans died to bring you this signature....

User avatar
SV2.0
Posts: 88
Joined: Wed Jul 06, 2005 6:17 am
Location: California USA

Re: No resolution limit

Post by SV2.0 » Fri Oct 30, 2009 5:07 am

Awesome.

User avatar
darksmaster923
Posts: 1857
Joined: Wed Jan 03, 2007 10:32 pm
Location: Huntington Beach, California, USA
Contact:

Re: No resolution limit

Post by darksmaster923 » Mon Jan 04, 2010 4:58 am

Why add that to the code?
Herp derp.

User avatar
paradoxnj
RF2 Dev Team
Posts: 1328
Joined: Wed Mar 01, 2006 7:37 pm
Location: Brick, NJ
Contact:

Re: No resolution limit

Post by paradoxnj » Mon Jan 04, 2010 5:12 am

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.
Many Bothans died to bring you this signature....

Veleran
Posts: 891
Joined: Mon Aug 22, 2005 10:22 am
Location: Greece

Re: Resolutions

Post by Veleran » Fri Feb 12, 2010 10:25 am

Or at least please gives us bigger screen resolution than the 1280-1024 -which is the same since 2003.

Allanon
Posts: 493
Joined: Mon Aug 29, 2005 8:23 am

Re: Resolutions

Post by Allanon » Fri Feb 12, 2010 6:52 pm

If you would have read two posts down you would have seen this:

http://www.realityfactory.info/forum/vi ... f=4&t=4532

User avatar
bernie
RF Moderator
Posts: 1249
Joined: Tue Nov 15, 2005 10:07 am
Location: Ireland

Re: Resolutions

Post by bernie » Fri Feb 12, 2010 7:41 pm

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.

Allanon
Posts: 493
Joined: Mon Aug 29, 2005 8:23 am

Re: Resolutions

Post by Allanon » Fri Feb 12, 2010 10:18 pm

My point was it was already in the feature request section and they didn't have to start a new post.

User avatar
bernie
RF Moderator
Posts: 1249
Joined: Tue Nov 15, 2005 10:07 am
Location: Ireland

Re: No resolution limit

Post by bernie » Fri Feb 12, 2010 10:42 pm

Sorry Allanon I hadn't noticed (My age is catching up with me). Merged.

User avatar
QuestOfDreams
Site Admin
Posts: 1520
Joined: Sun Jul 03, 2005 11:12 pm
Location: Austria
Contact:

Re: No resolution limit

Post by QuestOfDreams » Thu Apr 24, 2014 8:11 pm

Increased d3d driver resolution limit to 2048x1280 in version 0.78.0.0

Post Reply