Mercurial > hg > dmlib
changeset 612:696f03f30c0e
Make certain static inline graphics functions always available, no need to
put them inside conditional.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 12 Apr 2013 12:33:49 +0300 |
parents | 828d86cd10e0 |
children | 15cd5b8a29b2 |
files | dmlib.h |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/dmlib.h Fri Apr 12 12:33:07 2013 +0300 +++ b/dmlib.h Fri Apr 12 12:33:49 2013 +0300 @@ -308,12 +308,14 @@ #define DM_HEADER #include "dmblitfunc.h" #undef DM_HEADER -#endif + +#endif // DM_GFX_BLITS /* Misc functions */ #ifdef DM_GFX_MISC + void dmFillRect(SDL_Surface *screen, int x0, int y0, int x1, int y1, const Uint32 col); void dmDrawHLine(SDL_Surface *screen, int x0, int x1, int yc, const Uint32 col); void dmDrawVLine(SDL_Surface *screen, int y0, int y1, int xc, const Uint32 col); @@ -321,6 +323,8 @@ void dmDrawBox3D(SDL_Surface *screen, int x0, int y0, int x1, int y1, Uint32 ucol, Uint32 dcol); void dmFillBox3D(SDL_Surface *screen, int x0, int y0, int x1, int y1, Uint32 bgcol, Uint32 ucol, Uint32 dcol); +#endif // DM_GFX_MISC + static inline void dmClearSurface(SDL_Surface *screen, const Uint32 col) { @@ -344,7 +348,6 @@ { return SDL_BlitSurface(bmp, NULL, screen, NULL); } -#endif static inline SDL_Surface *dmCopySurface(SDL_Surface *src)