mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-29 01:42:32 +01:00
wrlib: move fixed angle rotation code to dedicated functions
The function RRotateImage contains code to handle efficiently the 4 simple angles 0, 90, 180 and 270 degrees, which makes it a long function. This patch separate the code for the different cases into dedicated functions so the main function's code ends up being simple (aka: easier to understand/review/maintain). As a side effect, the function for the 180 degree function is not static because it can be reused to flip an image both horizontally and vertically. Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
committed by
Carlos R. Mafra
parent
be5d04525d
commit
f85066a19e
@@ -35,6 +35,7 @@ libwraster_la_SOURCES = \
|
||||
scale.c \
|
||||
scale.h \
|
||||
rotate.c \
|
||||
rotate.h \
|
||||
flip.c \
|
||||
convolve.c \
|
||||
save_xpm.c \
|
||||
|
||||
Reference in New Issue
Block a user