Skip to content

Commit

Permalink
Bugfix PatternRelationSystem::GeneratePatternImage height/width
Browse files Browse the repository at this point in the history
  • Loading branch information
ohhmm committed Apr 15, 2024
1 parent 7bc14fc commit 5eb0e7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libgen/system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ boost::gil::rgba8_image_t PatternRelationSystem::GeneratePatternImage()
copy.Eval(y, row);

using namespace boost::gil;
auto& px = view(row, col);
auto& px = view(col, row);
get_color(px, alpha_t()) = boost::numeric_cast<uint8_t>(copy.Get(alpha).ca());;
get_color(px, blue_t()) = boost::numeric_cast<uint8_t>(copy.Get(blue).ca());;
get_color(px, green_t()) = boost::numeric_cast<uint8_t>(copy.Get(green).ca());;
Expand Down

0 comments on commit 5eb0e7d

Please sign in to comment.