[vte/wip/sixels: 20/111] image: Silence warning caused by comparing doubles without infinitesimal
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/wip/sixels: 20/111] image: Silence warning caused by comparing doubles without infinitesimal
- Date: Sat, 8 Aug 2020 18:42:59 +0000 (UTC)
commit c3af60d1e90d27cb3a6af40974a92956c9e16ca0
Author: Hans Petter Jansson <hpj cl no>
Date: Sat Aug 8 20:42:48 2020 +0200
image: Silence warning caused by comparing doubles without infinitesimal
src/vteimage.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/vteimage.cc b/src/vteimage.cc
index 628d01d4..1dd372cf 100644
--- a/src/vteimage.cc
+++ b/src/vteimage.cc
@@ -140,7 +140,7 @@ image_object::freeze ()
m_nwrite = 0;
cairo_surface_get_device_scale (m_surface, &x_scale, &y_scale);
- if (x_scale != 1.0 || y_scale != 1.0) {
+ if (!_vte_double_equal(x_scale, 1.0) || !_vte_double_equal(y_scale, 1.0)) {
/* If device scale exceeds 1.0, large size of PNG image created with
cairo_surface_write_to_png_stream()
* So we need to convert m_surface into an image surface with resizing it.
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]