예제 #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));
        }
예제 #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));
        }