Mir: Replaced memcpy() with SDL_memcpy().
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Wed, 24 Feb 2016 21:07:19 +0100
changeset 10094 fdfdae3f6039
parent 10093 7eb2075bdc0b
child 10095 0897c3accd52
Mir: Replaced memcpy() with SDL_memcpy().
src/video/mir/SDL_mirframebuffer.c
src/video/mir/SDL_mirmouse.c
--- a/src/video/mir/SDL_mirframebuffer.c	Wed Feb 24 21:06:46 2016 +0100
+++ b/src/video/mir/SDL_mirframebuffer.c	Wed Feb 24 21:07:19 2016 +0100
@@ -132,7 +132,7 @@
 
         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;
         }
--- a/src/video/mir/SDL_mirmouse.c	Wed Feb 24 21:06:46 2016 +0100
+++ b/src/video/mir/SDL_mirmouse.c	Wed Feb 24 21:07:19 2016 +0100
@@ -93,7 +93,7 @@
 
     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;
     }