diff options
Diffstat (limited to 'examples/surfaces/image-surface.cc')
-rw-r--r-- | examples/surfaces/image-surface.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/surfaces/image-surface.cc b/examples/surfaces/image-surface.cc index d8ea451..9318a1a 100644 --- a/examples/surfaces/image-surface.cc +++ b/examples/surfaces/image-surface.cc @@ -15,10 +15,10 @@ int main() { - Cairo::RefPtr<Cairo::ImageSurface> surface = + auto surface = Cairo::ImageSurface::create(Cairo::FORMAT_ARGB32, 600, 400); - Cairo::RefPtr<Cairo::Context> cr = Cairo::Context::create(surface); + auto cr = Cairo::Context::create(surface); cr->save(); // save the state of the context cr->set_source_rgb(0.86, 0.85, 0.47); |