draw: remove useless AlignAuto

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-10-23 15:53:04 +02:00
parent 75e6f4cb9e
commit 93be5b3cae
2 changed files with 3 additions and 6 deletions

8
draw.c
View File

@ -864,8 +864,8 @@ draw_text_extents(int phys_screen, font_t *font,
}
/** Transform a string to a alignment_t type.
* Recognized string are left, center or right. Everything else will be
* recognized as AlignAuto.
* Recognized string are flex, left, center or right. Everything else will be
* recognized as AlignLeft.
* \param align Atring with align text.
* \param len The string length.
* \return An alignment_t type.
@ -875,11 +875,10 @@ draw_align_fromstr(const char *align, ssize_t len)
{
switch (a_tokenize(align, len))
{
case A_TK_LEFT: return AlignLeft;
case A_TK_CENTER: return AlignCenter;
case A_TK_RIGHT: return AlignRight;
case A_TK_FLEX: return AlignFlex;
default: return AlignAuto;
default: return AlignLeft;
}
}
@ -896,7 +895,6 @@ draw_align_tostr(alignment_t a)
case AlignCenter: return "center";
case AlignRight: return "right";
case AlignFlex: return "flex";
case AlignAuto: return "auto";
default: return NULL;
}
}

1
draw.h
View File

@ -49,7 +49,6 @@ typedef enum
AlignRight,
AlignCenter,
AlignFlex,
AlignAuto
} alignment_t;
typedef struct vector_t vector_t;