summaryrefslogtreecommitdiff
path: root/rotord/src/nodes_source.h
diff options
context:
space:
mode:
Diffstat (limited to 'rotord/src/nodes_source.h')
-rw-r--r--rotord/src/nodes_source.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/rotord/src/nodes_source.h b/rotord/src/nodes_source.h
index 3ce9fdd..37c3b61 100644
--- a/rotord/src/nodes_source.h
+++ b/rotord/src/nodes_source.h
@@ -58,10 +58,11 @@ namespace Rotor {
Image *output(const Frame_spec &frame){
uint8_t col=((uint8_t)(inputs[0]->get((Time_spec)frame)*255.0f));
if (col!=prevcol){ //how about when starting a new render?
- for (int i=0;i<image.w*image.h*3;i++){
- image.RGBdata[i]=col;
- }
+ //for (int i=0;i<image.w*image.h*3;i++){
+ // image.RGBdata[i]=col;
+ //}
prevcol=col;
+ memset(image.RGBdata,col,image.w*image.h*3);
}
return &image;