Mercurial > hg > dmlib
diff dmlineclip.h @ 234:a2abd0b991b6
Modularize line drawing related templates and functions, add clipping
functions to dmlib.h.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 08 Oct 2012 15:21:59 +0300 |
parents | 79dac918c81e |
children | 9d015d32841a |
line wrap: on
line diff
--- a/dmlineclip.h Mon Oct 08 09:01:16 2012 +0300 +++ b/dmlineclip.h Mon Oct 08 15:21:59 2012 +0300 @@ -1,5 +1,8 @@ -int DM_CLIP_FUNC (DM_COORD_TYPE *x0, DM_COORD_TYPE *y0, DM_COORD_TYPE *x1, DM_COORD_TYPE *y1, SDL_Surface *screen) +int DM_CLIP_FUNC (SDL_Surface *screen, DM_COORD_TYPE *x0, DM_COORD_TYPE *y0, DM_COORD_TYPE *x1, DM_COORD_TYPE *y1) +#ifdef DM_HEADER +; +#else { const DM_COORD_TYPE clipX0 = screen->clip_rect.x, @@ -231,6 +234,7 @@ return 1; } +#endif #undef DM_CLIP_FUNC #undef DM_COORD_TYPE