[Windows] Fix driver version detection of AMD RDNA+ GPU on Windows 10
[xbmc.git] / xbmc / settings / windows / GUIWindowSettingsScreenCalibration.h
blobdd3e6b14424da2f57377234e13b67eb4b8fb37b9
1 /*
2 * Copyright (C) 2005-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
9 #pragma once
11 #include "guilib/GUIWindow.h"
13 #include <map>
14 #include <utility>
15 #include <vector>
17 class CGUIWindowSettingsScreenCalibration : public CGUIWindow
19 public:
20 CGUIWindowSettingsScreenCalibration(void);
21 ~CGUIWindowSettingsScreenCalibration(void) override;
22 bool OnMessage(CGUIMessage& message) override;
23 bool OnAction(const CAction& action) override;
24 void DoProcess(unsigned int currentTime, CDirtyRegionList& dirtyregions) override;
25 void FrameMove() override;
26 void DoRender() override;
27 void AllocResources(bool forceLoad = false) override;
28 void FreeResources(bool forceUnLoad = false) override;
30 protected:
31 unsigned int FindCurrentResolution();
32 void NextControl();
33 void ResetControls();
34 void EnableControl(int iControl);
35 bool UpdateFromControl(int iControl);
36 void ResetCalibration();
37 unsigned int m_iCurRes;
38 std::vector<RESOLUTION> m_Res;
39 int m_iControl;
40 float m_fPixelRatioBoxHeight;
42 private:
43 std::map<int, std::pair<float, float>> m_controlsSize;
44 int m_subtitlesHalfSpace{0};
45 int m_subtitleVerticalMargin{0};
46 bool m_isSubtitleBarEnabled{false};