Changeset 77 in projects for paper-tape-project/trunk/visualisator/lochstreifen.c
- Timestamp:
- Jul 26, 2013, 4:39:24 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
paper-tape-project/trunk/visualisator/lochstreifen.c
r76 r77 84 84 LOCHSTREIFEN *l = malloc (sizeof(LOCHSTREIFEN)); 85 85 #define COPY_RGBA_PATTERN(name) { double r,g,b,a; \ 86 if(!cairo_pattern_get_rgba(template->name, &r, &g, &b, &a)) \ 86 if(template->name != NULL && \ 87 !cairo_pattern_get_rgba(template->name, &r, &g, &b, &a)) \ 87 88 l->name = cairo_pattern_create_rgba(r,g,b,a); } 88 89 … … 92 93 l->highlight_region_start = template->highlight_region_start; 93 94 l->highlight_region_end = template->highlight_region_end; 95 printf("Copy1\n"); 94 96 COPY_RGBA_PATTERN(highlight_region_color); 97 printf("Copy2\n"); 95 98 l->highlight_row_number = template->highlight_row_number; 96 99 COPY_RGBA_PATTERN(highlight_row_color);
Note: See TracChangeset
for help on using the changeset viewer.