|
|
@@ -90,7 +90,7 @@ pipi_command_t const *pipi_get_command_list(void) |
|
|
|
{ "screen", 0 }, |
|
|
|
{ "overlay", 0 }, |
|
|
|
{ "line", 1 }, |
|
|
|
{ "wave", 1 }, |
|
|
|
{ "sine", 1 }, |
|
|
|
|
|
|
|
/* End marker */ |
|
|
|
{ NULL, 0 } |
|
|
@@ -822,7 +822,7 @@ int pipi_command(pipi_context_t *ctx, char const *cmd, ...) |
|
|
|
x1, y1, x2, y2, color, aa); |
|
|
|
ctx->nimages++; |
|
|
|
} |
|
|
|
else if(!strcmp(cmd, "wave")) |
|
|
|
else if(!strcmp(cmd, "sine")) |
|
|
|
{ |
|
|
|
pipi_image_t *tmp; |
|
|
|
char const *arg; |
|
|
@@ -842,7 +842,7 @@ int pipi_command(pipi_context_t *ctx, char const *cmd, ...) |
|
|
|
return -1; |
|
|
|
|
|
|
|
tmp = ctx->images[ctx->nimages - 1]; |
|
|
|
ctx->images[ctx->nimages - 1] = pipi_wave(tmp, dw, dh, d, a); |
|
|
|
ctx->images[ctx->nimages - 1] = pipi_sine(tmp, dw, dh, d, a); |
|
|
|
pipi_free(tmp); |
|
|
|
} |
|
|
|
else |
|
|
|