Skip to content

Commit

Permalink
Mir: Replaced memcpy() with SDL_memcpy().
Browse files Browse the repository at this point in the history
  • Loading branch information
philippwiesemann committed Feb 24, 2016
1 parent b4b3612 commit 966aa37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/video/mir/SDL_mirframebuffer.c
Expand Up @@ -132,7 +132,7 @@ MIR_UpdateWindowFramebuffer(_THIS, SDL_Window* window,

bytes_per_row = bytes_per_pixel * w;
for (j = 0; j < h; j++) {
memcpy(s_dest, pixels, bytes_per_row);
SDL_memcpy(s_dest, pixels, bytes_per_row);
pixels += s_stride;
s_dest += d_stride;
}
Expand Down
2 changes: 1 addition & 1 deletion src/video/mir/SDL_mirmouse.c
Expand Up @@ -93,7 +93,7 @@ CopySurfacePixelsToMirStream(SDL_Surface* surface, MirBufferStream* stream)

for (i = 0; i < s_h; i++)
{
memcpy(dest, pixels, bytes_per_row);
SDL_memcpy(dest, pixels, bytes_per_row);
dest += r_stride;
pixels += p_stride;
}
Expand Down

0 comments on commit 966aa37

Please sign in to comment.