Use configured resolution for login/outgame/ingame
[ryzomcore.git] / ryzom / tools / client / client_config / display_advanced_dlg.cpp
blob718a338ebaecca697f30058b38c88427e301f520
1 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
2 // Copyright (C) 2010 Winch Gate Property Limited
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Affero General Public License as
6 // published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Affero General Public License for more details.
14 // You should have received a copy of the GNU Affero General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
17 // display_advanced_dlg.cpp : implementation file
20 #include "stdafx.h"
21 #include "client_config.h"
22 #include "display_advanced_dlg.h"
23 #include "cfg_file.h"
25 // ***************************************************************************
26 // CDisplayAdvancedDlg dialog
27 // ***************************************************************************
29 CDisplayAdvancedDlg::CDisplayAdvancedDlg(CWnd* pParent /*=NULL*/)
30 : CBaseDialog(CDisplayAdvancedDlg::IDD, pParent)
32 //{{AFX_DATA_INIT(CDisplayAdvancedDlg)
33 DisableAGPVertices = FALSE;
34 DisableTextureShaders = FALSE;
35 DisableVertexProgram = FALSE;
36 DisableDXTC = FALSE;
37 //}}AFX_DATA_INIT
40 // ***************************************************************************
42 void CDisplayAdvancedDlg::DoDataExchange(CDataExchange* pDX)
44 CDialog::DoDataExchange(pDX);
45 //{{AFX_DATA_MAP(CDisplayAdvancedDlg)
46 DDX_Check(pDX, IDC_DISABLE_AGP_VERTICES, DisableAGPVertices);
47 DDX_Check(pDX, IDC_DISABLE_TEXTURE_SHADERS, DisableTextureShaders);
48 DDX_Check(pDX, IDC_DISABLE_VERTEX_PROGRAM, DisableVertexProgram);
49 DDX_Check(pDX, IDC_FORCE_DXTC, DisableDXTC);
50 //}}AFX_DATA_MAP
53 // ***************************************************************************
55 BEGIN_MESSAGE_MAP(CDisplayAdvancedDlg, CDialog)
56 //{{AFX_MSG_MAP(CDisplayAdvancedDlg)
57 ON_BN_CLICKED(IDC_DISABLE_AGP_VERTICES, OnDisableAgpVertices)
58 ON_BN_CLICKED(IDC_DISABLE_TEXTURE_SHADERS, OnDisableTextureShaders)
59 ON_BN_CLICKED(IDC_DISABLE_VERTEX_PROGRAM, OnDisableVertexProgram)
60 ON_BN_CLICKED(IDC_FORCE_DXTC, OnForceDxtc)
61 //}}AFX_MSG_MAP
62 END_MESSAGE_MAP()
64 // ***************************************************************************
65 // CDisplayAdvancedDlg message handlers
66 // ***************************************************************************
68 void CDisplayAdvancedDlg::OnDisableAgpVertices()
70 InvalidateConfig ();
73 // ***************************************************************************
75 void CDisplayAdvancedDlg::OnDisableTextureShaders()
77 InvalidateConfig ();
80 // ***************************************************************************
82 void CDisplayAdvancedDlg::OnDisableVertexProgram()
84 InvalidateConfig ();
87 // ***************************************************************************
89 void CDisplayAdvancedDlg::OnForceDxtc()
91 InvalidateConfig ();
94 // ***************************************************************************