Re: [FFmpeg-devel] [PATCH] avdevice/gdigrab: client_only option to discard decorations such as titlebar or borders

2020-07-09 Thread Calvin Walton
On Fri, 2020-06-19 at 10:33 +0200, Sergio Acereda wrote: > +/** > + * Fetch titlebar height from handle. > + * > + * @param hwnd Handle of the window. > + * @return titlebar height > + */ > +static int > +calc_titlebar_height(HWND hwnd) { > +TITLEBARINFOEX tinfo; > +tinfo.cbSize =

Re: [FFmpeg-devel] [PATCH] avdevice/gdigrab: client_only option to discard decorations such as titlebar or borders

2020-06-24 Thread Moritz Barsnick
On Fri, Jun 19, 2020 at 10:33:00 +0200, Sergio Acereda wrote: > +static int > +calc_titlebar_height(HWND hwnd) { Nit: the opening bracket of a function belongs in the next line. > GetClientRect(hwnd, _rect); > +if (gdigrab->client_only) { > +int cxborder =

[FFmpeg-devel] [PATCH] avdevice/gdigrab: client_only option to discard decorations such as titlebar or borders

2020-06-19 Thread Sergio Acereda
--- libavdevice/gdigrab.c | 25 + 1 file changed, 25 insertions(+) diff --git a/libavdevice/gdigrab.c b/libavdevice/gdigrab.c index f406fa..b09c88d94d 100644 --- a/libavdevice/gdigrab.c +++ b/libavdevice/gdigrab.c @@ -52,6 +52,7 @@ struct gdigrab { int