Skip to content

Commit

Permalink
remove use of designated initializers
Browse files Browse the repository at this point in the history
Added in #2229, this is a C++20 feature. For now we're on C++17 (by way of Node.js v18).
  • Loading branch information
zbjornson committed Apr 14, 2024
1 parent 4018095 commit f934f22
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Image.cc
Expand Up @@ -1178,10 +1178,10 @@ Image::renderSVGToSurface() {
} }


RsvgRectangle viewport = { RsvgRectangle viewport = {
.x = 0, 0, // x
.y = 0, 0, // y
.width = static_cast<double>(width), static_cast<double>(width),
.height = static_cast<double>(height), static_cast<double>(height)
}; };
gboolean render_ok = rsvg_handle_render_document(_rsvg, cr, &viewport, nullptr); gboolean render_ok = rsvg_handle_render_document(_rsvg, cr, &viewport, nullptr);
if (!render_ok) { if (!render_ok) {
Expand Down

0 comments on commit f934f22

Please sign in to comment.