summaryrefslogtreecommitdiffstats
path: root/libass
diff options
context:
space:
mode:
authoreugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-12-16 19:35:48 +0000
committereugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-12-16 19:35:48 +0000
commitc0358ff255ca22fa21b75039a30d022ed232f75a (patch)
tree5e42883cf4f53b9210108a9891b42b755d0dcd30 /libass
parentd6ffde2900fcb6a283f72c3947ed2bbc9f59555a (diff)
downloadmpv-c0358ff255ca22fa21b75039a30d022ed232f75a.tar.bz2
mpv-c0358ff255ca22fa21b75039a30d022ed232f75a.tar.xz
Cosmetics: fix indentation.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21636 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libass')
-rw-r--r--libass/ass_font.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/libass/ass_font.c b/libass/ass_font.c
index da9cd1d9c8..5491ed53ff 100644
--- a/libass/ass_font.c
+++ b/libass/ass_font.c
@@ -85,11 +85,11 @@ ass_font_t* ass_font_new(ass_library_t* library, FT_Library ftlibrary, void* fc_
return 0;
}
} else {
- error = FT_New_Face(ftlibrary, path, index, &face);
- if (error) {
- mp_msg(MSGT_ASS, MSGL_WARN, MSGTR_LIBASS_ErrorOpeningFont, path, index);
- return 0;
- }
+ error = FT_New_Face(ftlibrary, path, index, &face);
+ if (error) {
+ mp_msg(MSGT_ASS, MSGL_WARN, MSGTR_LIBASS_ErrorOpeningFont, path, index);
+ return 0;
+ }
}
charmap_magic(face);
@@ -177,17 +177,17 @@ void ass_font_get_asc_desc(ass_font_t* font, uint32_t ch, int* asc, int* desc)
{
int i;
for (i = 0; i < font->n_faces; ++i) {
- FT_Face face = font->faces[i];
- if (FT_Get_Char_Index(face, ch)) {
- int v, v2;
- v = face->size->metrics.ascender;
- v2 = FT_MulFix(face->bbox.yMax, face->size->metrics.y_scale);
- *asc = (v > v2 * 0.9) ? v : v2;
+ FT_Face face = font->faces[i];
+ if (FT_Get_Char_Index(face, ch)) {
+ int v, v2;
+ v = face->size->metrics.ascender;
+ v2 = FT_MulFix(face->bbox.yMax, face->size->metrics.y_scale);
+ *asc = (v > v2 * 0.9) ? v : v2;
- v = - face->size->metrics.descender;
- v2 = - FT_MulFix(face->bbox.yMin, face->size->metrics.y_scale);
- *desc = (v > v2 * 0.9) ? v : v2;
- return;
+ v = - face->size->metrics.descender;
+ v2 = - FT_MulFix(face->bbox.yMin, face->size->metrics.y_scale);
+ *desc = (v > v2 * 0.9) ? v : v2;
+ return;
}
}