--- gnome-control-center-2.22.0-patched/capplets/display/xrandr-capplet.c.orig 2008-03-17 19:14:53.000000000 -0700 +++ gnome-control-center-2.22.0-patched/capplets/display/xrandr-capplet.c 2008-03-17 19:25:16.000000000 -0700 @@ -738,6 +738,7 @@ on_area_paint (FooScrollArea *area, Output *output = list->data; PangoLayout *layout = get_display_name (app, output); int w, h; + int label_width, label_height; get_geometry (output, &w, &h); @@ -776,9 +777,13 @@ on_area_paint (FooScrollArea *area, cairo_stroke (cr); cairo_set_line_width (cr, 2); - cairo_move_to (cr, x + 40, MARGIN + 40); + layout_set_font (layout, "Sans Bold 16"); + pango_layout_set_width(layout, w * PANGO_SCALE); + pango_layout_set_height(layout, (int)(h * scale + 0.5) * PANGO_SCALE); + pango_layout_set_alignment(layout, PANGO_ALIGN_CENTER); + pango_layout_get_pixel_size(layout, &label_width, &label_height); + cairo_move_to (cr, x, MARGIN + (int)(h * scale + 0.5 - label_height)/2); cairo_set_source_rgb (cr, 0.0, 0.2, 0.59); - layout_set_font (layout, "Sans Bold 18"); pango_cairo_show_layout (cr, layout); g_object_unref (layout);