We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
在 syscall_sdl.c 當中的下列這段程式,x < height 是否應該改為 x < width ?
for (size_t y = 0; y < height; ++y) { for (size_t x = 0; x < height; ++x) { const uint8_t c = p[x]; const uint8_t *lut = j + (c * 3); d[x] = (lut[0] << 16) | (lut[1] << 8) | lut[2]; } p += width, d += width; }
修改為
for (size_t y = 0; y < height; ++y) { for (size_t x = 0; x < width; ++x) { const uint8_t c = p[x]; const uint8_t *lut = j + (c * 3); d[x] = (lut[0] << 16) | (lut[1] << 8) | lut[2]; } p += width, d += width; }
The text was updated successfully, but these errors were encountered:
嗨,我也覺得要改成 width,或許你可以發個 PR。
Sorry, something went wrong.
Fix sysprog21#6
bda6e2d
Close sysprog21#6
Fix SDL range check (#8)
0cf86ec
Close #6
eecheng87
Successfully merging a pull request may close this issue.
在 syscall_sdl.c 當中的下列這段程式,x < height 是否應該改為 x < width ?
修改為
The text was updated successfully, but these errors were encountered: