diff options
| author | Simon <simon@hardwired.org.uk> | 2010-11-03 15:51:02 (GMT) |
|---|---|---|
| committer | Simon <simon@hardwired.org.uk> | 2010-11-03 15:51:02 (GMT) |
| commit | 9a40e4924e99af80a50b2c5f409d8463f993c4da (patch) | |
| tree | 1aa4f3982d1af6c2cbe523d2631e7d47df2e9fb6 /includes | |
| parent | d1ce8e55dfd07faa3eb8029ea47a1db6a30f6988 (diff) | |
| download | powder-9a40e4924e99af80a50b2c5f409d8463f993c4da.zip powder-9a40e4924e99af80a50b2c5f409d8463f993c4da.tar.gz | |
Major improvements to text wrapping, acceptible but still character based
Diffstat (limited to 'includes')
| -rw-r--r-- | includes/graphics.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/graphics.h b/includes/graphics.h index ec0d597..7019351 100644 --- a/includes/graphics.h +++ b/includes/graphics.h @@ -93,10 +93,12 @@ int drawtextmax(pixel *vid, int x, int y, int w, char *s, int r, int g, int b, i int textnwidth(char *s, int n); -int textnheight(char *s, int n, int w); +void textnpos(char *s, int n, int w, int *cx, int *cy); int textwidthx(char *s, int w); +int textposxy(char *s, int width, int w, int h); + #ifdef WIN32 _inline void blendpixel(pixel *vid, int x, int y, int r, int g, int b, int a); #else |
