jpegview icon indicating copy to clipboard operation
jpegview copied to clipboard

Hope not to change the wallpaper style when setting the wallpaper

Open vvyoko opened this issue 3 years ago • 1 comments

JPEGView/DesktopWallpaper.cpp

WallpaperStyle: https://github.com/microsoftarchive/msdn-code-gallery-microsoft/blob/master/OneCodeTeam/Set%20the%20desktop%20wallpaper%20(CSSetDesktopWallpaper)/README.md

Currently setting wallpaper will change the wallpaper style of the system This is not necessary I think can follow the system settings just like right click in Explorer to set as wallpaper

You can try commenting out these lines to test the effect

		CRect largestMonitor = CMultiMonitorSupport::GetMonitorRect(-1);
		bool needsFitToScreen = image.InitOrigWidth() > largestMonitor.Width() || image.InitOrigHeight() > largestMonitor.Height();
		SetRegistryStringValue(_T("WallpaperStyle"), needsFitToScreen ? _T("6") : _T("0"));
		SetRegistryStringValue(_T("TileWallpaper"), _T("0"));

vvyoko avatar Feb 10 '22 23:02 vvyoko

ha it's a feature I've never tested actually, let me investigate.

sylikc avatar Feb 11 '22 01:02 sylikc