From ebaee9ea620690dabdff3792e3c86a2c8de9325f Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Sat, 2 Oct 2021 12:19:43 +0200 Subject: [PATCH] Minor adjustment. --- coders/caption.c | 2 +- coders/label.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/coders/caption.c b/coders/caption.c index cafc470320..5f9778e7c0 100644 --- a/coders/caption.c +++ b/coders/caption.c @@ -98,7 +98,7 @@ static inline void AdjustTypeMetricBounds(TypeMetric *metrics) double new_x1; - new_x1=-metrics->bounds.x1; + new_x1=ceil(-metrics->bounds.x1+0.5); metrics->width+=new_x1+new_x1; metrics->bounds.x1=new_x1; } diff --git a/coders/label.c b/coders/label.c index 95875d5591..7d87ed4733 100644 --- a/coders/label.c +++ b/coders/label.c @@ -93,8 +93,8 @@ static inline void AdjustTypeMetricBounds(TypeMetric *metrics) { double new_x1; - - new_x1=-metrics->bounds.x1; + + new_x1=ceil(-metrics->bounds.x1+0.5); metrics->width+=new_x1+new_x1; metrics->bounds.x1=new_x1; }