feat: animation

This commit is contained in:
anjingyu 2025-07-21 22:44:09 +08:00
parent 2803a05571
commit 033e6df50b
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ static void Animation(swwRenderer* o)
const int w = kDim / 4;
for (int x = -w; x < w; x++) {
if (x + xoffset < 0 || x + xoffset >= (int)dim)
if (x + xoffset < 0 || x + xoffset >= (int)kDim)
continue;
for (int y = yoffset - w; y < yoffset + w; y++) {
const uint8_t grey = abs(y - yoffset);