Skip to content

Commit

Permalink
Work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
skhaz committed Sep 28, 2024
1 parent 26f6b77 commit 1010c18
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pixmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ pixmap::pixmap(const std::shared_ptr<renderer> renderer, std::string_view filena

spng_ihdr ihdr{};
if (const auto error = spng_get_ihdr(ctx.get(), &ihdr); error != SPNG_OK) {
throw std::runtime_error(fmt::format("[spng_get_ihdr] error while getting image information: {}, error: {}", filename, spng_strerror(error)));
throw std::runtime_error(
fmt::format("[spng_get_ihdr] error while getting image information: {}, error: {}", filename, spng_strerror(error)));
}

const int format = SPNG_FMT_RGBA8;
Expand Down

0 comments on commit 1010c18

Please sign in to comment.