Ejemplo n.º 1
0
        public bool SetRefreshRate(uint refreshRate)
        {
            var horizontal = 3840;
            var vertical   = 2160;
            var display    = GetCurrentDisplay();

            ADLWrapper.GetDisplayResolution(display, ref horizontal, ref vertical);

            var portrait = vertical > horizontal;

            return(SetRefreshRateInternal(GetDisplayDeviceName(display), (int)refreshRate, portrait, horizontal, vertical));
        }
Ejemplo n.º 2
0
        public List <uint> GetAvailableRefreshRates(AmdPreset preset = null)
        {
            if (preset != null)
            {
                SetCurrentDisplay(preset);
            }

            var horizontal = 3840;
            var vertical   = 2160;
            var display    = GetCurrentDisplay();

            ADLWrapper.GetDisplayResolution(display, ref horizontal, ref vertical);

            var portrait = vertical > horizontal;

            return(GetAvailableRefreshRatesInternal(GetDisplayDeviceName(display), portrait, horizontal, vertical));
        }