- XSetForeground (display, context, background);
- XFillRectangle (display, pixmap, context, 0, 0, width, height);
- line_count = 0;
- total_lines = (int)(pow ((double)(segment_count),
- (double)index));
- plot_maximum_x = -1000.00;
- plot_maximum_y = -1000.00;
- plot_minimum_x = 1000.00;
- plot_minimum_y = 1000.00;
- self_similar (display, pixmap, context, width, height, index,
- x1, y1, x2, y2,
- maximum_x,
- maximum_y,
- minimum_x,
- minimum_y,
- segment_count, segments);
- delta_x = plot_maximum_x - plot_minimum_x;
- delta_y = plot_maximum_y - plot_minimum_y;
- maximum_x = plot_maximum_x + (delta_x * 0.2);
- maximum_y = plot_maximum_y + (delta_y * 0.2);
- minimum_x = plot_minimum_x - (delta_x * 0.2);
- minimum_y = plot_minimum_y - (delta_y * 0.2);
- delta_x = maximum_x - minimum_x;
- delta_y = maximum_y - minimum_y;
- if ((delta_y / delta_x) > (((double)height) / ((double)width)))
+ XSetForeground (st->dpy, st->context, st->background);
+ XFillRectangle (st->dpy, st->pixmap, st->context, 0, 0, st->width, st->height);
+ st->line_count = 0;
+ st->total_lines = (int)(pow ((double)(st->draw_segment_count),
+ (double)st->draw_index));
+ st->plot_maximum_x = -1000.00;
+ st->plot_maximum_y = -1000.00;
+ st->plot_minimum_x = 1000.00;
+ st->plot_minimum_y = 1000.00;
+ self_similar (st, st->pixmap, st->context, st->width, st->height, st->draw_index,
+ st->draw_x1, st->draw_y1, st->draw_x2, st->draw_y2,
+ st->draw_maximum_x,
+ st->draw_maximum_y,
+ st->draw_minimum_x,
+ st->draw_minimum_y,
+ st->draw_segment_count, st->draw_segments);
+ delta_x = st->plot_maximum_x - st->plot_minimum_x;
+ delta_y = st->plot_maximum_y - st->plot_minimum_y;
+ st->draw_maximum_x = st->plot_maximum_x + (delta_x * 0.2);
+ st->draw_maximum_y = st->plot_maximum_y + (delta_y * 0.2);
+ st->draw_minimum_x = st->plot_minimum_x - (delta_x * 0.2);
+ st->draw_minimum_y = st->plot_minimum_y - (delta_y * 0.2);
+ delta_x = st->draw_maximum_x - st->draw_minimum_x;
+ delta_y = st->draw_maximum_y - st->draw_minimum_y;
+ if ((delta_y / delta_x) > (((double)st->height) / ((double)st->width)))