> compile NEMU
221220000 张三 Linux zzy 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux 13:10:33 up 7 days, 13:11, 1 user, load average: 0.22, 0.23, 0.11
This commit is contained in:
@ -89,7 +89,7 @@ void NDL_DrawRect(uint32_t *pixels, int x, int y, int w, int h) {
|
||||
// x += (dev_w - x) / 2;
|
||||
// y += (dev_h - y) / 2;
|
||||
for (int i = 0; i < h; i ++) {
|
||||
fwrite(pixels + (y + i) + x, sizeof(uint32_t), w, fp);
|
||||
fwrite(pixels + screen_w * (y + i) + x, sizeof(uint32_t), w, fp);
|
||||
}
|
||||
fclose(fp);
|
||||
}
|
||||
|
Reference in New Issue
Block a user