Reddit-Wallpaper-Changer icon indicating copy to clipboard operation
Reddit-Wallpaper-Changer copied to clipboard

Add option to set minimum wallpaper size

Open jose-a-sa opened this issue 6 years ago • 3 comments

Validade wallpaper sizes? option is really buggy. If is set it cant find any wallpaper because the program does not identify the resolution correctly. For example, I have a 1920×1080 panel but it is identified as 1536×864 because of Windows scaling at 125%. Besides, I think it is trying to find a exact fit of the resolution, which is itself a problem.

A better implementation (for fill mode at least, nobody likes stretched low res wallpapers) to validate a wallpaper size would be to:

  1. find a wallpaper whose width in pixels is greater than the screen width
  2. keeping the aspect ratio fixed, check if the resized image has enough room to cover the height of the screen
  3. repeat if the wallpaper does not match the criteria

Another simpler way would be to let users set minimum width and height for wallpapers.

jose-a-sa avatar Sep 22 '17 14:09 jose-a-sa

Thanks for the feedback. Never considered that scaling would prevent the resolution from being identified correctly. I'll do some testing and see what can be done.

Rawns avatar Nov 01 '17 16:11 Rawns

I would love this as well! Maybe even get the resolution of the primary monitor and use that. :)

ghost avatar Dec 10 '17 16:12 ghost

Likely fix for this here: https://docs.microsoft.com/en-us/dotnet/framework/winforms/high-dpi-support-in-windows-forms

qwertydog avatar Jan 29 '18 01:01 qwertydog