Mercurial > hg > dmlib
comparison dmscaledblit.h @ 87:baf72a99d5ee
Cosmetics.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 02 Oct 2012 10:50:44 +0300 |
parents | c257d73cf790 |
children | 0430f484641b |
comparison
equal
deleted
inserted
replaced
86:7108681151a4 | 87:baf72a99d5ee |
---|---|
1 /* | 1 /* |
2 * DMLib | 2 * DMLib |
3 * -- Sprite / surface blitting function template | 3 * -- Scaled sprite / surface blitting function template |
4 * Programmed and designed by Matti 'ccr' Hamalainen | 4 * Programmed and designed by Matti 'ccr' Hamalainen |
5 * (C) Copyright 2011-2012 Tecnic Software productions (TNSP) | 5 * (C) Copyright 2011-2012 Tecnic Software productions (TNSP) |
6 */ | 6 */ |
7 | 7 |
8 int DM_BLITFUNC_NAME (SDL_Surface *src, | 8 int DM_BLITFUNC_NAME (SDL_Surface *src, |
50 { | 50 { |
51 const DM_BLITFUNC_SRC_TYPE * sp = ((DM_BLITFUNC_SRC_TYPE *) src->pixels) + (FP_GETH(yv) * src->pitch) / DM_BLITFUNC_SRC_BYTES; | 51 const DM_BLITFUNC_SRC_TYPE * sp = ((DM_BLITFUNC_SRC_TYPE *) src->pixels) + (FP_GETH(yv) * src->pitch) / DM_BLITFUNC_SRC_BYTES; |
52 int xc; | 52 int xc; |
53 | 53 |
54 #ifdef DM_BLITFUNC_INNER_INIT | 54 #ifdef DM_BLITFUNC_INNER_INIT |
55 DM_BLITFUNC_INNER_INIT | 55 DM_BLITFUNC_INNER_INIT |
56 #endif | 56 #endif |
57 | 57 |
58 for (xv.dw = dx.dw, xc = xr.v0; xc < xr.v1; xc++) | 58 for (xv.dw = dx.dw, xc = xr.v0; xc < xr.v1; xc++) |
59 { | 59 { |
60 DM_BLITFUNC_INNER | 60 DM_BLITFUNC_INNER |