/* Background color of the current desktop theme */
GdkRGBA theme_bg_color;
-
/* Foreground color of the current desktop theme */
GdkRGBA theme_fg_color;
};
static void
draw_graph_background(cairo_t *cr,
- int g_xoff, int g_yoff,
int g_width, int g_height,
- int width, int height, struct config *config,
+ int width, struct config *config,
struct graph_info *info)
{
struct color *bgcolor;
info->theme_bg_color.green,
info->theme_bg_color.blue);
- cairo_rectangle(cr, g_xoff, 0, g_width, height);
+ cairo_rectangle(cr, info->g_xoff, 0, g_width, info->height);
cairo_fill(cr);
if (config->alpha_channel_enabled)
bgcolor->green,
bgcolor->blue);
- cairo_rectangle(cr, g_xoff, g_yoff, g_width, g_height);
+ cairo_rectangle(cr, info->g_xoff, info->g_yoff, g_width, g_height);
cairo_fill(cr);
}
g_width = width - g_xoff - GRAPH_H_PADDING;
draw_graph_background(cr,
- g_xoff, g_yoff, g_width, g_height,
- width, height, config,
+ g_width, g_height,
+ width, config,
&info);
/* Set the color for text drawing */