Mercurial > sdl-ios-xcode
diff src/video/qtopia/SDL_QWin.cc @ 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 | c9b51268668f |
children | 376665398b25 |
line wrap: on
line diff
--- a/src/video/qtopia/SDL_QWin.cc Mon Feb 06 17:28:04 2006 +0000 +++ b/src/video/qtopia/SDL_QWin.cc Tue Feb 07 06:59:48 2006 +0000 @@ -243,7 +243,7 @@ uchar *fb = (uchar*)my_painter->frameBuffer(); uchar *buf = (uchar*)my_image->bits(); if(rect == my_image->rect()) { - memcpy(fb, buf, width()*height()*2); + SDL_memcpy(fb, buf, width()*height()*2); } else { int h = rect.height(); int wd = rect.width()<<1; @@ -252,7 +252,7 @@ fb += (rect.left()<<1) + rect.top() * my_painter->lineStep(); buf += (rect.left()<<1) + rect.top() * my_image->bytesPerLine(); while(h--) { - memcpy(fb, buf, wd); + SDL_memcpy(fb, buf, wd); fb += fblineadd; buf += buflineadd; } @@ -279,7 +279,7 @@ uchar *fb = (uchar*)my_painter->frameBuffer(); uchar *buf = (uchar*)my_image->bits(); if(rect == my_image->rect()) { - memcpy(fb, buf, width()*height()*2); + SDL_memcpy(fb, buf, width()*height()*2); } else { int h = rect.height(); int wd = rect.width()<<1; @@ -288,7 +288,7 @@ fb += (rect.left()<<1) + rect.top() * my_painter->lineStep(); buf += (rect.left()<<1) + rect.top() * my_image->bytesPerLine(); while(h--) { - memcpy(fb, buf, wd); + SDL_memcpy(fb, buf, wd); fb += fblineadd; buf += buflineadd; }