Mercurial > audlegacy-plugins
diff src/paranormal/general.c @ 272:d8cefe8ce6e6 trunk
[svn] - add copy surface
author | nenolod |
---|---|
date | Sun, 19 Nov 2006 11:27:16 -0800 |
parents | b166ce84af57 |
children | 8f4dc0d63925 |
line wrap: on
line diff
--- a/src/paranormal/general.c Sun Nov 19 11:20:18 2006 -0800 +++ b/src/paranormal/general.c Sun Nov 19 11:27:16 2006 -0800 @@ -250,3 +250,19 @@ 0, NULL, NULL, NULL, general_swap_exec }; + +/* **************** general_copy **************** */ +static void +general_copy_exec (const struct pn_actuator_option *opts, + gpointer data) +{ + memcpy(pn_image_data->surface[1], pn_image_data->surface[0], + (pn_image_data->width * pn_image_data->height)); +} + +struct pn_actuator_desc builtin_general_copy = +{ + "general_copy", "Copy Surface", "Copies the surface to the other surface.", + 0, NULL, + NULL, NULL, general_copy_exec +};