From 92f272f191424e088351248df667ae67f1ef008a Mon Sep 17 00:00:00 2001 From: Tim Kluge Date: Sat, 14 Dec 2024 14:31:10 +0100 Subject: [PATCH] Fix weather widget displays opposite wind direction --- .../kotlin/de/timklge/karooheadwind/datatypes/WeatherView.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/de/timklge/karooheadwind/datatypes/WeatherView.kt b/app/src/main/kotlin/de/timklge/karooheadwind/datatypes/WeatherView.kt index 857a751..3580f3d 100644 --- a/app/src/main/kotlin/de/timklge/karooheadwind/datatypes/WeatherView.kt +++ b/app/src/main/kotlin/de/timklge/karooheadwind/datatypes/WeatherView.kt @@ -59,7 +59,7 @@ fun Weather(baseBitmap: Bitmap, current: WeatherInterpretation, windBearing: Int Row(horizontalAlignment = Alignment.CenterHorizontally, verticalAlignment = Alignment.CenterVertically) { Image( modifier = GlanceModifier.height(20.dp).width(12.dp), - provider = ImageProvider(getArrowBitmapByBearing(baseBitmap, windBearing)), + provider = ImageProvider(getArrowBitmapByBearing(baseBitmap, windBearing + 180)), contentDescription = "Current wind direction", contentScale = ContentScale.Fit, colorFilter = ColorFilter.tint(ColorProvider(Color.Black, Color.White))