> 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 19:56:10 up 7 days, 19:56, 1 user, load average: 0.44, 0.29, 0.21
This commit is contained in:
@ -15,8 +15,8 @@ void SDL_BlitSurface(SDL_Surface *src, SDL_Rect *srcrect, SDL_Surface *dst, SDL_
|
||||
};
|
||||
|
||||
for (int i = 0; i < rect.h; i ++) {
|
||||
memcpy((uint32_t*)dst->pixels + (rect.y + i) * dst->w + rect.x,
|
||||
(uint32_t*)src->pixels + (srcrect->y + i) * src->w + srcrect->x, rect.w);
|
||||
memcpy(((uint32_t*)dst->pixels) + (rect.y + i) * dst->w + rect.x,
|
||||
((uint32_t*)src->pixels) + (srcrect->y + i) * src->w + srcrect->x, rect.w);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user