summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2021-04-03 16:07:50 +0200
committerChristian Persch <chpe@src.gnome.org>2021-04-03 16:07:50 +0200
commit260416dfc4a93b8e202e09acfcc30e2063d7f37e (patch)
treedf72035c8ecf0091733b142a323ecbcd82cf121a
parent74de8ced35d8ef7c3b0bdc81c90147aa00d30648 (diff)
downloadvte-260416dfc4a93b8e202e09acfcc30e2063d7f37e.tar.gz
sixel: Fix pixel aspect calculation
-rw-r--r--src/sixel-context.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sixel-context.hh b/src/sixel-context.hh
index 43a01d42..b3adea86 100644
--- a/src/sixel-context.hh
+++ b/src/sixel-context.hh
@@ -507,7 +507,7 @@ private:
/* VTE doesn't currently use the pixel aspect ratio */
auto const aspect_num = seq.param(0, 1, 1, 1 << 15 /* 32Ki */);
auto const aspect_den = seq.param(1, 1, 1, 1 << 15 /* 32Ki */);
- auto const pixel_aspect = std::clamp(aspect_num / aspect_den, 0.1, 10.0);
+ auto const pixel_aspect = std::clamp(double(aspect_num) / double(aspect_den), 0.1, 10.0);
#endif
m_raster_width = seq.param(2, 0, 0, k_max_width);