Mercurial > sdl-ios-xcode
comparison src/video/SDL_draw.h @ 2900:3a9636c83849
Make it possible to switch algorithms in the future
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 21 Dec 2008 08:59:56 +0000 |
parents | a0c837a16e4c |
children | 133601e3b255 |
comparison
equal
deleted
inserted
replaced
2899:a0c837a16e4c | 2900:3a9636c83849 |
---|---|
320 error += deltax; \ | 320 error += deltax; \ |
321 } \ | 321 } \ |
322 } \ | 322 } \ |
323 } \ | 323 } \ |
324 } | 324 } |
325 #define DRAWLINE(x0, y0, x1, y1, op) BRESENHAM(x0, y0, x1, y1, op) | |
325 | 326 |
326 /* | 327 /* |
327 * Define blend fill macro | 328 * Define blend fill macro |
328 */ | 329 */ |
329 | 330 |
330 #define BLENDRECT(type, op) \ | 331 #define FILLRECT(type, op) \ |
331 do { \ | 332 do { \ |
332 int w; \ | 333 int w; \ |
333 int width = dstrect->w; \ | 334 int width = dstrect->w; \ |
334 int height = dstrect->h; \ | 335 int height = dstrect->h; \ |
335 int pitch = (dst->pitch / dst->format->BytesPerPixel); \ | 336 int pitch = (dst->pitch / dst->format->BytesPerPixel); \ |