Major improvements to text wrapping, acceptible but still character based

This commit is contained in:
Simon
2010-11-03 15:51:02 +00:00
parent d1ce8e55df
commit 9a40e4924e
3 changed files with 40 additions and 8 deletions

View File

@@ -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