1. 13 Jun, 2017 3 commits
  2. 30 May, 2017 1 commit
    • Uli Schlachter's avatar
      xcb: Fix error reporting if fallback fails · bfc243ca
      Uli Schlachter authored
      
      
      If we cannot let the X11 server do some operation (for example: the
      RENDER extension is not available), then we fall back to an image
      surface and do the operation locally instead. This fallback requires the
      current content of the surface to be downloaded from the X11 server.
      This fallback logic had an error.
      
      The fallback is implemented with _get_image() in the function
      _cairo_xcb_surface_fallback(). _get_image() is only called if we do not
      yet have a fallback available, so when we call _get_image we have
      surface->fallback == NULL. Then, if _get_image() fails, it returns a
      surface in an error state.
      
      Before this patch, the code would then just ignore this error surface
      and return &surface->fallback->base, a NULL pointer. This would then
      quickly cause a crash when e.g. the surface's ->status member is
      accessed.
      
      Fix this by returning the error surface instead as the fallback.
      
      The end result of this patch will be that the XCB surface that is
      currently drawn to ends up in an error state which is a lot better than
      a NULL pointer dereference and actually correct in this case. The error
      state is reached because the current drawing operation will fail and
      this error is reported up the call stack and eventually "taints" the
      surface.
      
      (However, the error code could be better: _get_image() too often fails
      with a generic CAIRO_STATUS_NO_MEMORY error, but that's left as future
      work)
      Signed-off-by: Uli Schlachter's avatarUli Schlachter <psychon@znc.in>
      bfc243ca
  3. 27 May, 2017 1 commit
  4. 13 May, 2017 1 commit
  5. 05 May, 2017 1 commit
  6. 25 Apr, 2017 5 commits
  7. 24 Apr, 2017 3 commits
  8. 16 Mar, 2017 2 commits
  9. 07 Mar, 2017 2 commits
  10. 02 Mar, 2017 1 commit
  11. 01 Feb, 2017 1 commit
  12. 18 Jan, 2017 1 commit
    • Andrea Canciani's avatar
      quartz: Restore 10.4-specific font code · 5a8a9c97
      Andrea Canciani authored
      The code for extracting font glyphs was replaced in
      70cc8f25 with an implementation based
      on CoreText, which is not available on MacOSX 10.4.  This commit
      restores automatic detection of which API should be used by means of
      dynamic linking.
      5a8a9c97
  13. 04 Jan, 2017 2 commits
  14. 20 Dec, 2016 1 commit
  15. 09 Dec, 2016 3 commits
  16. 03 Nov, 2016 1 commit
  17. 29 Oct, 2016 1 commit
  18. 12 Oct, 2016 1 commit
  19. 10 Oct, 2016 2 commits
  20. 06 Oct, 2016 1 commit
  21. 04 Oct, 2016 2 commits
  22. 01 Oct, 2016 4 commits