2010-04-25 00:31:27 +00:00
|
|
|
/*
|
2009-02-09 21:15:56 +00:00
|
|
|
* Copyright (C) 2007-2009 Gabest
|
|
|
|
* http://www.gabest.org
|
|
|
|
*
|
|
|
|
* This Program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
* any later version.
|
2010-04-25 00:31:27 +00:00
|
|
|
*
|
2009-02-09 21:15:56 +00:00
|
|
|
* This Program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
2010-04-25 00:31:27 +00:00
|
|
|
*
|
2009-02-09 21:15:56 +00:00
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with GNU Make; see the file COPYING. If not, write to
|
2012-09-09 18:16:11 +00:00
|
|
|
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA USA.
|
2009-02-09 21:15:56 +00:00
|
|
|
* http://www.gnu.org/copyleft/gpl.html
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2009-06-03 12:09:04 +00:00
|
|
|
#include "GSDialog.h"
|
2009-02-09 21:15:56 +00:00
|
|
|
#include "GSSetting.h"
|
|
|
|
|
2012-02-29 00:29:29 +00:00
|
|
|
class GSShadeBostDlg : public GSDialog
|
|
|
|
{
|
|
|
|
int saturation;
|
|
|
|
int brightness;
|
|
|
|
int contrast;
|
|
|
|
|
|
|
|
void UpdateControls();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void OnInit();
|
|
|
|
bool OnMessage(UINT message, WPARAM wParam, LPARAM lParam);
|
|
|
|
|
|
|
|
public:
|
|
|
|
GSShadeBostDlg();
|
|
|
|
};
|
|
|
|
|
2012-03-06 19:39:05 +00:00
|
|
|
class GSHacksDlg : public GSDialog
|
|
|
|
{
|
|
|
|
unsigned short cb2msaa[17];
|
|
|
|
unsigned short msaa2cb[17];
|
2012-08-06 05:26:44 +00:00
|
|
|
std::string adapter_id;
|
2012-03-06 19:39:05 +00:00
|
|
|
|
|
|
|
bool isdx9;
|
|
|
|
|
2012-04-23 18:46:09 +00:00
|
|
|
HWND hovered_window;
|
2012-03-07 09:58:38 +00:00
|
|
|
|
2012-03-06 19:39:05 +00:00
|
|
|
void UpdateControls();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void OnInit();
|
|
|
|
bool OnMessage(UINT message, WPARAM wParam, LPARAM lParam);
|
|
|
|
|
|
|
|
public:
|
|
|
|
GSHacksDlg();
|
2012-08-06 05:26:44 +00:00
|
|
|
|
|
|
|
// Ugh
|
|
|
|
void SetAdapter(std::string adapter_id_)
|
|
|
|
{
|
|
|
|
adapter_id = adapter_id_;
|
|
|
|
}
|
2012-03-06 19:39:05 +00:00
|
|
|
};
|
|
|
|
|
2009-06-03 12:09:04 +00:00
|
|
|
class GSSettingsDlg : public GSDialog
|
2009-02-09 21:15:56 +00:00
|
|
|
{
|
2009-05-11 08:18:00 +00:00
|
|
|
list<D3DDISPLAYMODE> m_modes;
|
2012-08-06 05:26:44 +00:00
|
|
|
struct Adapter
|
|
|
|
{
|
|
|
|
std::string name;
|
|
|
|
std::string id;
|
|
|
|
D3D_FEATURE_LEVEL level;
|
|
|
|
Adapter(const std::string &n, const std::string &i, const D3D_FEATURE_LEVEL &l)
|
|
|
|
: name(n), id(i), level(l) {}
|
|
|
|
};
|
|
|
|
std::vector<const Adapter> adapters;
|
2010-01-28 02:53:10 +00:00
|
|
|
bool m_IsOpen2;
|
2010-04-25 00:31:27 +00:00
|
|
|
|
2012-08-06 05:26:44 +00:00
|
|
|
void UpdateRenderers();
|
2009-06-04 08:32:31 +00:00
|
|
|
void UpdateControls();
|
|
|
|
|
2009-06-03 12:09:04 +00:00
|
|
|
protected:
|
|
|
|
void OnInit();
|
|
|
|
bool OnCommand(HWND hWnd, UINT id, UINT code);
|
|
|
|
|
2011-02-20 16:09:46 +00:00
|
|
|
uint32 m_lastValidMsaa; // used to revert to previous dialog value if the user changed to invalid one, or lesser one and canceled
|
2011-01-02 10:24:36 +00:00
|
|
|
|
2012-02-29 00:29:29 +00:00
|
|
|
// Shade Boost
|
|
|
|
GSShadeBostDlg ShadeBoostDlg;
|
2012-03-06 19:39:05 +00:00
|
|
|
GSHacksDlg HacksDlg;
|
2012-02-29 00:29:29 +00:00
|
|
|
|
2009-02-09 21:15:56 +00:00
|
|
|
public:
|
2011-02-20 16:09:46 +00:00
|
|
|
GSSettingsDlg(bool isOpen2);
|
2010-04-25 00:31:27 +00:00
|
|
|
};
|