This makes the code way more readable, and also avoids a lot of strcmps. Use it for draw_align_get_from_str as a proof of concept. Signed-off-by: Pierre Habouzit <madcoder@debian.org>