Skip to content
  • Florian Zwoch's avatar
    dx9screencapsrc: add "cursor" option to draw the cursor · 8960debc
    Florian Zwoch authored and Sebastian Dröge's avatar Sebastian Dröge committed
    Drawing is done via the GDI drawing functions. The cursor is
    converted to a monochrome version before drawing. This is because
    the GDI drawing functions seem to have undefined behavior with
    cursor images including an alpha channel.
    
    I could not find any other reliable way to draw these alpha
    channel cursors without producing unwanted artifacts. These type
    of cursors were introduced with Window Vista when run with it's
    Aero theme.
    
    Also adjust the cursor coordinates when capturing non-primary
    screens via the "monitor" option.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=760172
    8960debc