Mercurial > sdl-ios-xcode
comparison 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 |
comparison
equal
deleted
inserted
replaced
1335:c39265384763 | 1336:3692456e7b0f |
---|---|
241 bool SDL_QWin::repaintRotation0(const QRect& rect) { | 241 bool SDL_QWin::repaintRotation0(const QRect& rect) { |
242 if(my_image->width() == width()) { | 242 if(my_image->width() == width()) { |
243 uchar *fb = (uchar*)my_painter->frameBuffer(); | 243 uchar *fb = (uchar*)my_painter->frameBuffer(); |
244 uchar *buf = (uchar*)my_image->bits(); | 244 uchar *buf = (uchar*)my_image->bits(); |
245 if(rect == my_image->rect()) { | 245 if(rect == my_image->rect()) { |
246 memcpy(fb, buf, width()*height()*2); | 246 SDL_memcpy(fb, buf, width()*height()*2); |
247 } else { | 247 } else { |
248 int h = rect.height(); | 248 int h = rect.height(); |
249 int wd = rect.width()<<1; | 249 int wd = rect.width()<<1; |
250 int fblineadd = my_painter->lineStep(); | 250 int fblineadd = my_painter->lineStep(); |
251 int buflineadd = my_image->bytesPerLine(); | 251 int buflineadd = my_image->bytesPerLine(); |
252 fb += (rect.left()<<1) + rect.top() * my_painter->lineStep(); | 252 fb += (rect.left()<<1) + rect.top() * my_painter->lineStep(); |
253 buf += (rect.left()<<1) + rect.top() * my_image->bytesPerLine(); | 253 buf += (rect.left()<<1) + rect.top() * my_image->bytesPerLine(); |
254 while(h--) { | 254 while(h--) { |
255 memcpy(fb, buf, wd); | 255 SDL_memcpy(fb, buf, wd); |
256 fb += fblineadd; | 256 fb += fblineadd; |
257 buf += buflineadd; | 257 buf += buflineadd; |
258 } | 258 } |
259 } | 259 } |
260 } else { | 260 } else { |
277 // landscape mode | 277 // landscape mode |
278 if (screenRotation == SDL_QT_ROTATION_90) { | 278 if (screenRotation == SDL_QT_ROTATION_90) { |
279 uchar *fb = (uchar*)my_painter->frameBuffer(); | 279 uchar *fb = (uchar*)my_painter->frameBuffer(); |
280 uchar *buf = (uchar*)my_image->bits(); | 280 uchar *buf = (uchar*)my_image->bits(); |
281 if(rect == my_image->rect()) { | 281 if(rect == my_image->rect()) { |
282 memcpy(fb, buf, width()*height()*2); | 282 SDL_memcpy(fb, buf, width()*height()*2); |
283 } else { | 283 } else { |
284 int h = rect.height(); | 284 int h = rect.height(); |
285 int wd = rect.width()<<1; | 285 int wd = rect.width()<<1; |
286 int fblineadd = my_painter->lineStep(); | 286 int fblineadd = my_painter->lineStep(); |
287 int buflineadd = my_image->bytesPerLine(); | 287 int buflineadd = my_image->bytesPerLine(); |
288 fb += (rect.left()<<1) + rect.top() * my_painter->lineStep(); | 288 fb += (rect.left()<<1) + rect.top() * my_painter->lineStep(); |
289 buf += (rect.left()<<1) + rect.top() * my_image->bytesPerLine(); | 289 buf += (rect.left()<<1) + rect.top() * my_image->bytesPerLine(); |
290 while(h--) { | 290 while(h--) { |
291 memcpy(fb, buf, wd); | 291 SDL_memcpy(fb, buf, wd); |
292 fb += fblineadd; | 292 fb += fblineadd; |
293 buf += buflineadd; | 293 buf += buflineadd; |
294 } | 294 } |
295 } | 295 } |
296 } else if (screenRotation == SDL_QT_ROTATION_270) { | 296 } else if (screenRotation == SDL_QT_ROTATION_270) { |