In a -gtk or -xlib environment, if I call cairo_get_target() and then use that surface to call get_image_surface_width/height(), I get silly numbers. Is this the correct way to determine the screen drawing size? I have sample code to demo this, along the lines of: // find out our surface size cairo_surface_t *cs = cairo_get_target(cr); int width = cairo_image_surface_get_width(cs); int height = cairo_image_surface_get_height(cs); #if DEBUG printf("surface area w: %d, h:%d\n",width,height); #endif
*** This bug has been marked as a duplicate of 3851 ***
Move bugs against "cvs" version to "0.9.3" so we can remove the "cvs" version.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.