summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--HISTORY1
-rw-r--r--xine_post_atmo.c8
2 files changed, 5 insertions, 4 deletions
diff --git a/HISTORY b/HISTORY
index a447fff..4cd4c05 100644
--- a/HISTORY
+++ b/HISTORY
@@ -6,6 +6,7 @@ Added 'start_delay' plugin parameter for individual adjustment of start delay af
Changed start delay default from 1000ms to 250ms
Added 'enable' plugin parameter for switching the atmolight on/off on the fly.
DF10CH channel layout configuration parameters are now mandatory.
+Changed calculation of weights for border area
--- Version 0.4
diff --git a/xine_post_atmo.c b/xine_post_atmo.c
index 2680da7..e22a47e 100644
--- a/xine_post_atmo.c
+++ b/xine_post_atmo.c
@@ -446,13 +446,13 @@ static void calc_weight(atmo_post_plugin_t *this, int *weight, const int width,
if (center_channel)
*weight++ = 255;
if (top_left_channel)
- *weight++ = (top + left) / 2;
+ *weight++ = (top > left) ? top: left;
if (top_right_channel)
- *weight++ = (top + right) / 2;
+ *weight++ = (top > right) ? top: right;
if (bottom_left_channel)
- *weight++ = (bottom + left) / 2;
+ *weight++ = (bottom > left) ? bottom: left;
if (bottom_right_channel)
- *weight++ = (bottom + right) / 2;
+ *weight++ = (bottom > right) ? bottom: right;
}
}
}