1. 26 Jan, 2024 2 commits
    • Brendan McGrath's avatar
      d2d1: Fix double free bug when d2d_geometry_sink_Close fails. · 1e79217f
      Brendan McGrath authored
      geometry->fill.bezier_vertices was being freed on the failed path in
      d2d_geometry_sink_Close and then again when the path geometry was
      released (in d2d_geometry_cleanup).
      
      By setting it to NULL after freeing it initially, all other calls
      to free it are a no-op.
      1e79217f
    • Brendan McGrath's avatar
      d2d1: Use 24-bit FP precision for triangulate. · 6d8489a0
      Brendan McGrath authored
      This fixes a rendering issue (and ultimately a crash) in PowerPoint when
      compiling with GCC 8.
      
      GCC8 doesn't support the `excess-precision=standard` option under the
      `#pragma GCC optimize` directive.
      
      This results in unpredictable floating point rounding leading to errors
      when inserting segments (with missing edges and/or triangles).
      
      Using 24-bit precision ensures we don't have any excess precision.
      6d8489a0
  2. 25 Jan, 2024 20 commits
  3. 24 Jan, 2024 16 commits
  4. 23 Jan, 2024 2 commits