Bug 3853 - do cairo_image_surface_get_width/height() work on screen contexts?
Summary: do cairo_image_surface_get_width/height() work on screen contexts?
Status: RESOLVED DUPLICATE of bug 3851
Alias: None
Product: cairo
Classification: Unclassified
Component: general (show other bugs)
Version: 0.9.3
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Carl Worth
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-24 03:55 UTC by Pat Beirne
Modified: 2005-08-22 00:14 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Pat Beirne 2005-07-24 03:55:13 UTC
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
Comment 1 Pat Beirne 2005-07-24 03:57:09 UTC

*** This bug has been marked as a duplicate of 3851 ***
Comment 2 Carl Worth 2005-08-22 17:14:09 UTC
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.