diff src/video/SDL_renderer_gl.c @ 2918:bd518fc76f28

Updated to build on Windows
author Sam Lantinga <slouken@libsdl.org>
date Thu, 25 Dec 2008 05:11:29 +0000
parents 133601e3b255
children dc4523c7c22d
line wrap: on
line diff
--- a/src/video/SDL_renderer_gl.c	Thu Dec 25 04:56:44 2008 +0000
+++ b/src/video/SDL_renderer_gl.c	Thu Dec 25 05:11:29 2008 +0000
@@ -519,9 +519,9 @@
 {
     const int have_texture_rects = data->GL_ARB_texture_rectangle_supported;
     const char *replacement = have_texture_rects ? "RECT" : "2D";
-    const size_t replacementlen = strlen(replacement);
+    const size_t replacementlen = SDL_strlen(replacement);
     const char *token = "%TEXTURETARGET%";
-    const size_t tokenlen = strlen(token);
+    const size_t tokenlen = SDL_strlen(token);
     char *code = NULL;
     char *ptr = NULL;
     GLuint program = 0;
@@ -536,9 +536,9 @@
         return 0;
 
     for (ptr = SDL_strstr(code, token); ptr; ptr = SDL_strstr(ptr + 1, token)) {
-        memcpy(ptr, replacement, replacementlen);
-        memmove(ptr + replacementlen, ptr + tokenlen,
-                strlen(ptr + tokenlen) + 1);
+        SDL_memcpy(ptr, replacement, replacementlen);
+        SDL_memmove(ptr + replacementlen, ptr + tokenlen,
+                    SDL_strlen(ptr + tokenlen) + 1);
     }
 
 #if DEBUG_PROGRAM_COMPILE