~ubuntu-branches/debian/stretch/libgdiplus/stretch

« back to all changes in this revision

Viewing changes to src/graphics.c

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-10-10 11:31:26 UTC
  • mfrom: (1.1.23)
  • Revision ID: package-import@ubuntu.com-20131010113126-ecj1t0t211tikifi
Tags: 2.11+git20131008.9732566-1
* [285d0a3] Imported Upstream version 2.11+git20131008.9732566 
  (Closes: #649946)
* [b7b1355] Build-depends on libtiff5-dev | libtiff-dev, change 
  from libtiff4-dev (Closes #681132)
* [fea5c93] Build-Depends on libpng-dev, change from libpng12-dev 
  (Closes: #662402)

Show diffs side-by-side

added added

removed removed

Lines of Context:
208
208
        return result;
209
209
}
210
210
 
211
 
#ifdef CAIRO_HAS_XLIB_SURFACE
212
 
 
213
211
// coverity[+alloc : arg-*1]
214
212
GpStatus 
215
213
GdipCreateFromHDC (void *hDC, GpGraphics **graphics)
233
231
 
234
232
        if (clone->type == gtMemoryBitmap)
235
233
                return GdipGetImageGraphicsContext (clone->image, graphics);
236
 
        
 
234
 
 
235
#ifdef CAIRO_HAS_XLIB_SURFACE
237
236
        XGetGeometry (clone->display, clone->drawable, &root,
238
237
                      &x, &y, &w, &h, &border_w, &depth);
239
238
        
255
254
                (*graphics)->display = clone->display;  
256
255
 
257
256
        return Ok;
 
257
#endif
 
258
 
 
259
        return NotImplemented;
258
260
}
259
261
 
260
262
GpStatus
263
265
        return NotImplemented;
264
266
}
265
267
 
266
 
#endif
267
 
 
268
268
#ifdef CAIRO_HAS_QUARTZ_SURFACE
269
269
// coverity[+alloc : arg-*3]
270
270
GpStatus