diff src/video/wincommon/SDL_syswm.c @ 1336:3692456e7b0f

Use SDL_ prefixed versions of C library functions. FIXME: Change #include <stdlib.h> to #include "SDL_stdlib.h" Change #include <string.h> to #include "SDL_string.h" Make sure nothing else broke because of this...
author Sam Lantinga <slouken@libsdl.org>
date Tue, 07 Feb 2006 06:59:48 +0000
parents 450721ad5436
children 604d73db6802
line wrap: on
line diff
--- a/src/video/wincommon/SDL_syswm.c	Mon Feb 06 17:28:04 2006 +0000
+++ b/src/video/wincommon/SDL_syswm.c	Tue Feb 07 06:59:48 2006 +0000
@@ -123,7 +123,7 @@
 	if ( icon_win32 == NULL ) {
 		return;
 	}
-	memset(icon_win32, 0, icon_len);
+	SDL_memset(icon_win32, 0, icon_len);
 
 	/* Set the basic BMP parameters */
 	icon_win32->biSize = sizeof(*icon_win32)-sizeof(icon_win32->biColors);
@@ -144,7 +144,7 @@
 	if (icon->format->palette && 
 		(icon->format->BitsPerPixel == icon_256->format->BitsPerPixel)){
 		Uint8 black;
-		memcpy(pal_256->colors, icon->format->palette->colors,
+		SDL_memcpy(pal_256->colors, icon->format->palette->colors,
 					pal_256->ncolors*sizeof(SDL_Color));
 		/* Make sure that 0 is black! */
 		black = SDL_FindColor(pal_256, 0x00, 0x00, 0x00);
@@ -234,7 +234,7 @@
 {
 #ifdef _WIN32_WCE
 	/* WinCE uses the UNICODE version */
-	int nLen = strlen(title)+1;
+	int nLen = SDL_strlen(title)+1;
 	LPWSTR lpszW = alloca(nLen*2);
 	MultiByteToWideChar(CP_ACP, 0, title, -1, lpszW, nLen);
 	SetWindowText(SDL_Window, lpszW);