mirror of https://github.com/encounter/SDL.git
Mir: Replaced memcpy() with SDL_memcpy().
This commit is contained in:
parent
b4b36122a4
commit
966aa3721b
|
@ -132,7 +132,7 @@ MIR_UpdateWindowFramebuffer(_THIS, SDL_Window* window,
|
||||||
|
|
||||||
bytes_per_row = bytes_per_pixel * w;
|
bytes_per_row = bytes_per_pixel * w;
|
||||||
for (j = 0; j < h; j++) {
|
for (j = 0; j < h; j++) {
|
||||||
memcpy(s_dest, pixels, bytes_per_row);
|
SDL_memcpy(s_dest, pixels, bytes_per_row);
|
||||||
pixels += s_stride;
|
pixels += s_stride;
|
||||||
s_dest += d_stride;
|
s_dest += d_stride;
|
||||||
}
|
}
|
||||||
|
|
|
@ -93,7 +93,7 @@ CopySurfacePixelsToMirStream(SDL_Surface* surface, MirBufferStream* stream)
|
||||||
|
|
||||||
for (i = 0; i < s_h; i++)
|
for (i = 0; i < s_h; i++)
|
||||||
{
|
{
|
||||||
memcpy(dest, pixels, bytes_per_row);
|
SDL_memcpy(dest, pixels, bytes_per_row);
|
||||||
dest += r_stride;
|
dest += r_stride;
|
||||||
pixels += p_stride;
|
pixels += p_stride;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue