C++23 fixes

This commit is contained in:
Mirek Fidler 2024-09-21 09:57:02 +02:00
parent 15177768ac
commit 29c203fd54
6 changed files with 8 additions and 8 deletions

View file

@ -16,7 +16,7 @@ Image CreateBall(int r, Color color)
int q = ((x - r) * (x - r) + (y - r) * (y - r)) * 256 / r2;
a.a = q <= 255 ? q : 0;
}
return b;
return Image(b);
}
struct BallMaker : ImageMaker {