diff options
author | Peter Hutterer <peter.hutterer@redhat.com> | 2009-05-13 07:47:19 -0400 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@redhat.com> | 2009-05-13 09:26:21 -0400 |
commit | d61b5b62d40756ebddb133943dbbc1e946bc6424 (patch) | |
tree | 7eb9098d1de2735a3149582085dd54de43097d4f | |
parent | 0d55edc6975c4e9f1bbf565bc328e3dc1e9e7132 (diff) |
Remove some commented out block.
it really doesn't matter what background we have anyway
-rw-r--r-- | src/Manager.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/Manager.cpp b/src/Manager.cpp index ce595bf..5c8bc5d 100644 --- a/src/Manager.cpp +++ b/src/Manager.cpp @@ -86,25 +86,9 @@ void Manager::initX11(char* display) cairo_surface_t* cr_sf = cairo_xlib_surface_create(x11->dpy, pxBackground, x11->vis, x11->width, x11->height); cairo_t* cr = cairo_create(cr_sf); - /* - FIXME: For whatever reason this code stopped working. I don't have the time to - debug it, so for now it's just a white background. Tough luck. - - TRACE("Create background from %s\n",Config::getInstance()->imgBackground); - cairo_surface_t* cr_png_sf = cairo_image_surface_create_from_png( - Config::getInstance()->imgBackground); - int pngwidth, pngheight; - pngwidth = cairo_image_surface_get_width(cr_png_sf); - pngheight = cairo_image_surface_get_height(cr_png_sf); - TRACE("Scaling image: %dx%d ---> %dx%d\n", pngwidth, pngheight, - x11->width, x11->height); - cairo_scale(cr, (double)x11->width/pngwidth, (double)x11->height/pngheight); - cairo_set_source_surface(cr, cr_png_sf, 0, 0); - */ cairo_set_source_rgb(cr, 1, 1, 1); cairo_paint(cr); cairo_surface_destroy(cr_sf); - //cairo_surface_destroy(cr_png_sf); cairo_destroy(cr); XCopyArea(x11->dpy, pxBackground, x11->root, root_gc, 0, 0, x11->width, |