Skip to content

The refresh rate argument completer only lists rounded integers #8

Description

@MartinGC94

The API I use to get the display settings (EnumDisplaySettingsExW) only returns rounded values. The DirectX APIs supposedly returns a fractional value (see: https://learn.microsoft.com/en-us/windows/win32/api/dxgi/nf-dxgi-idxgioutput-getdisplaymodelist ) however I'm having a hard time understanding how to use the DirectX APIs to get this info.

As a workaround, users can tab complete the nearest value and just use -AllowChanges like this: Set-DisplayRefreshRate 1 59 -AllowChanges to have Windows find and set the nearest valid refresh rate.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions