diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2009-05-16 23:55:40 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2009-05-16 23:55:40 +0000 |
commit | c93bc1c6285eac9c081885acef1718060b0df6b8 (patch) | |
tree | 4fad6bfbb88ba91e5a42a937b83eda0b61fce8eb /lib/ppmdraw.h | |
parent | 70f49c177ba289985d1e33a82f3a8b36d3ab6771 (diff) | |
download | netpbm-mirror-c93bc1c6285eac9c081885acef1718060b0df6b8.tar.gz netpbm-mirror-c93bc1c6285eac9c081885acef1718060b0df6b8.tar.xz netpbm-mirror-c93bc1c6285eac9c081885acef1718060b0df6b8.zip |
Check bounds in various places
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@925 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'lib/ppmdraw.h')
-rw-r--r-- | lib/ppmdraw.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/ppmdraw.h b/lib/ppmdraw.h index 11c8857d..080e4c62 100644 --- a/lib/ppmdraw.h +++ b/lib/ppmdraw.h @@ -33,6 +33,12 @@ ppmd_makePoint(int const x, return p; } +void +ppmd_validateCoord(int const c); + +void +ppmd_validatePoint(ppmd_point const p); + typedef enum { PPMD_PATHLEG_LINE } ppmd_pathlegtype; @@ -317,6 +323,18 @@ ppmd_fill(pixel ** const pixels, /* Text drawing routines. */ void +ppmd_textp(pixel** const pixels, + int const cols, + int const rows, + pixval const maxval, + ppmd_point const pos, + int const height, + int const angle, + const char * const sArg, + ppmd_drawprocp drawProc, + const void * const clientdata); + +void ppmd_text(pixel** const pixels, int const cols, int const rows, |