From 50f3a709c033373361a32c65f7e14e521432695b Mon Sep 17 00:00:00 2001 From: Valentin Radu Date: Wed, 28 Sep 2022 14:36:27 +0300 Subject: [PATCH] Weather: Fixed wrong left padding of the widget Google seems to have updated the web page and the widget is now 14px more to the right, so the code had to account for this. --- ep_weather_host/ep_weather_host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ep_weather_host/ep_weather_host.c b/ep_weather_host/ep_weather_host.c index 9ef51c3..ba14946 100644 --- a/ep_weather_host/ep_weather_host.c +++ b/ep_weather_host/ep_weather_host.c @@ -428,7 +428,7 @@ HRESULT STDMETHODCALLTYPE _ep_Weather_ReboundBrowser(EPWeather* _this, LONG64 dw { DWORD dwTextScaleFactor = epw_Weather_GetTextScaleFactor(_this); DWORD dwZoomFactor = epw_Weather_GetZoomFactor(_this); - bounds.left = 0 - MulDiv(MulDiv(MulDiv(167, dpi, 96), dwTextScaleFactor, 100), dwZoomFactor, 100); + bounds.left = 0 - MulDiv(MulDiv(MulDiv(181, dpi, 96), dwTextScaleFactor, 100), dwZoomFactor, 100); bounds.top = 0 - MulDiv(MulDiv(MulDiv(178, dpi, 96), dwTextScaleFactor, 100), dwZoomFactor, 100); bounds.right = MulDiv(MulDiv(MulDiv((!InterlockedAdd64(&_this->dwTextDir, 0) ? 1333 : 705), dpi, 96), dwTextScaleFactor, 100), dwZoomFactor, 100);// 5560; bounds.bottom = MulDiv(MulDiv(MulDiv(600, dpi, 96), dwTextScaleFactor, 100), dwZoomFactor, 100);// 15600;