diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2011-05-06 22:42:37 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2011-05-06 22:42:37 +0000 |
commit | 208363fe2a8a519915123d80f3ca02452aa76eb3 (patch) | |
tree | b168143a3383e7ad99ba15c92e018efc185d7800 /amiga/font.c | |
parent | e71691bae890040b83cfd54a2d9a1097d5026866 (diff) | |
download | netsurf-208363fe2a8a519915123d80f3ca02452aa76eb3.tar.gz netsurf-208363fe2a8a519915123d80f3ca02452aa76eb3.tar.bz2 |
Rename DataTypes related code/files/defines to avoid confusion and aid adding support
for other DataType classes.
Disable MNG/WebP by default as they aren't common and the required libs are quite
large; DataTypes can handle these formats for now.
svn path=/trunk/netsurf/; revision=12284
Diffstat (limited to 'amiga/font.c')
-rw-r--r-- | amiga/font.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/amiga/font.c b/amiga/font.c index 7ee1b2a72..ab4af75fb 100644 --- a/amiga/font.c +++ b/amiga/font.c @@ -58,7 +58,7 @@ #define NSA_VALUE_SHEARSIN (1 << 14) #define NSA_VALUE_SHEARCOS (1 << 16) -#define NSA_FONT_EMWIDTH(s) (ULONG)(s / FONT_SIZE_SCALE) * (ami_xdpi / 72.0) +#define NSA_FONT_EMWIDTH(s) (s / FONT_SIZE_SCALE) * (ami_xdpi / 72.0) struct ami_font_node { @@ -136,7 +136,7 @@ bool nsfont_position_in_string(const plot_font_style_t *fstyle, uint8 *utf8; uint32 co = 0; int utf16charlen; - ULONG emwidth = NSA_FONT_EMWIDTH(fstyle->size); + ULONG emwidth = (ULONG)NSA_FONT_EMWIDTH(fstyle->size); int32 tempx; len = utf8_bounded_length(string, length); @@ -245,7 +245,7 @@ bool nsfont_split(const plot_font_style_t *fstyle, size_t len; int utf8len, utf8clen = 0; int32 tempx = 0; - ULONG emwidth = NSA_FONT_EMWIDTH(fstyle->size); + ULONG emwidth = (ULONG)NSA_FONT_EMWIDTH(fstyle->size); len = utf8_bounded_length(string, length); if(utf8_to_enc((char *)string,"UTF-16",length,(char **)&utf16) != UTF8_CONVERT_OK) return false; @@ -550,7 +550,7 @@ ULONG ami_unicode_text(struct RastPort *rp,const char *string,ULONG length,const uint32 x=0; uint8 co = 0; int32 tempx = 0; - ULONG emwidth = NSA_FONT_EMWIDTH(fstyle->size); + ULONG emwidth = (ULONG)NSA_FONT_EMWIDTH(fstyle->size); if(!string || string[0]=='\0') return 0; if(!length) return 0; |