@@ -228,7 +228,11 @@ static void load_defaults(struct compiler_sc *sc)
228
228
229
229
sc -> p -> pfv_initial [pfv_video_echo_zoom ] = 1.0 ;
230
230
231
+ sc -> p -> pfv_initial [pfv_image1_x ] = 0.5 ;
232
+ sc -> p -> pfv_initial [pfv_image1_y ] = 0.5 ;
231
233
sc -> p -> pfv_initial [pfv_image1_zoom ] = 1.0 ;
234
+ sc -> p -> pfv_initial [pfv_image2_x ] = 0.5 ;
235
+ sc -> p -> pfv_initial [pfv_image2_y ] = 0.5 ;
232
236
sc -> p -> pfv_initial [pfv_image2_zoom ] = 1.0 ;
233
237
}
234
238
@@ -586,13 +590,19 @@ static bool process_top_assign(struct compiler_sc *sc, char *left, char *right)
586
590
comp_report (sc , "warning l.%d: ignoring image with out of bounds number %d" , sc -> linenr , image_n );
587
591
return true;
588
592
}
589
- totalname = malloc (strlen (sc -> basedir ) + strlen (right ) + 0 );
590
- if (totalname == NULL ) return true;
591
- strcpy (totalname , sc -> basedir );
592
- strcat (totalname , right );
593
+ image_n -- ;
594
+ if (right [0 ] == '/' )
595
+ totalname = strdup (right );
596
+ else {
597
+ totalname = malloc (strlen (sc -> basedir ) + strlen (right ) + 0 );
598
+ if (totalname == NULL ) return true;
599
+ strcpy (totalname , sc -> basedir );
600
+ strcat (totalname , right );
601
+ }
593
602
pixbuf_dec_ref (sc -> p -> images [image_n ]);
594
603
sc -> p -> images [image_n ] = pixbuf_get (totalname );
595
604
free (totalname );
605
+ return true;
596
606
}
597
607
598
608
pfv = pfv_from_name (sc , left );
0 commit comments