wrlib: add explicit type definition in API to allow compiler Type Checks (2/3)
commitbc4084e67989e8e58068c49078daf5b2e7c3d56c
authorChristophe CURIS <christophe.curis@free.fr>
Sat, 14 Jun 2014 17:34:08 +0000 (14 19:34 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Sun, 15 Jun 2014 18:45:20 +0000 (15 19:45 +0100)
tree20fa70b08511d85270b1f24c7adf6f2958c8f1d7
parenteb3f0b12f87dcc61218734dbd1dd8db0ff0bda66
wrlib: add explicit type definition in API to allow compiler Type Checks (2/3)

When defining enums as types instead of simple enums allows to use these
types at the places where the corresponding enum values are expected, then
allowing the compiler to check that, potentially reporting incorrect use
of values to the user.

This patch adds the types for the drawing operations used by the functions
who drawing shapes into an RImage.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
wrlib/draw.c
wrlib/wraster.h