Skip to content

convert path to string before c_str #29

Merged
merged 1 commit into from
Jul 20, 2026
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dependencies/subprojects/animationwindow/src/Image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ TDT4102::Image::Image(const std::filesystem::path pathToImageFile) {
throw std::runtime_error("The image file located at " + path.string() + "\ncould not be found");
}

surface = IMG_Load(pathToImageFile.c_str());
surface = IMG_Load(pathToImageFile.string().c_str());
surface = SDL_ConvertSurfaceFormat(surface, GetPixelFormat(), 0);
width = surface->w;
height = surface->h;
Expand Down