Polish, fix and otherwise improve the video plugin configuration dialog:

- Add some info about a backend's feature set (MSAA, Real XFB, EFB to RAM, ..) to VideoConfig
- Gray out options if they aren't supported by the backend or if changing them doesn't affect anything (e.g. changing STC mode if STC is disabled)
- Allow signed bytes for D3D11. Not sure if this causes glitches, but it should work
- Call wxEvent.Skip() in the event function handlers, not sure if this fixes any bugs but the old code definitely caused bugs during development of this patch
- Fix a memory leak in the configuration dialog if D3D11 is used
- Other minor stuff that doesn't need to be mentioned or which I forgot

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6450 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
NeoBrainX
2010-11-21 14:47:28 +00:00
parent 86dc8d09fe
commit ee21237d6a
13 changed files with 207 additions and 84 deletions

View File

@ -28,6 +28,7 @@
#include "Common.h"
#include "VideoCommon.h"
#include <vector>
#include <string>
// Log in two categories, and save three other options in the same byte
@ -143,7 +144,19 @@ struct VideoConfig
int iAdapter;
// Static config per API
bool bAllowSignedBytes;
struct
{
API_TYPE APIType;
std::vector<std::string> Adapters; // for D3D9 and D3D11
std::vector<std::string> AAModes;
std::vector<std::string> PPShaders; // post-processing shaders
bool bUseRGBATextures; // used for D3D11 in TextureCache
bool bSupportsEFBToRAM;
bool bSupportsRealXFB;
bool bAllowSignedBytes; // D3D9 doesn't support signed bytes (?)
} backend_info;
};
extern VideoConfig g_Config;