diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2020-06-19 11:45:15 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2020-06-20 15:58:52 -0700 |
commit | 2dcdb952db5b34869e5d4c2e9b216025fa910efe (patch) | |
tree | b0fe47fc89719663559bab852469382ff74d0538 /recordmydesktop/src/rmd_setbrwindow.c | |
parent | 2e5fdc7f842eacce7b41eab794c4bfe97761e381 (diff) |
brwin: s/.rect/.winrect/
Disambiguate this member name a bit from the other .rect uses, just
to make things a bit easier to search for.
Diffstat (limited to 'recordmydesktop/src/rmd_setbrwindow.c')
-rw-r--r-- | recordmydesktop/src/rmd_setbrwindow.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/recordmydesktop/src/rmd_setbrwindow.c b/recordmydesktop/src/rmd_setbrwindow.c index b92eb9b..7b5b862 100644 --- a/recordmydesktop/src/rmd_setbrwindow.c +++ b/recordmydesktop/src/rmd_setbrwindow.c @@ -117,9 +117,9 @@ boolean rmdSetBRWindow( Display *dpy, if (args->windowid==0) {//root window //first set it up brwin->windowid=specs->root; - brwin->rect.x=brwin->rect.y=0; - brwin->rect.width=specs->width; - brwin->rect.height=specs->height; + brwin->winrect.x=brwin->winrect.y=0; + brwin->winrect.width=specs->width; + brwin->winrect.height=specs->height; brwin->rrect.x=args->x; brwin->rrect.y=args->y; brwin->rrect.width=((args->width)? args->width:specs->width-brwin->rrect.x); @@ -153,24 +153,24 @@ boolean rmdSetBRWindow( Display *dpy, &transl_y, &wchid); - brwin->rect.x=attribs.x-transl_x; - brwin->rect.y=attribs.y-transl_y; - brwin->rect.width=attribs.width; - brwin->rect.height=attribs.height; + brwin->winrect.x=attribs.x-transl_x; + brwin->winrect.y=attribs.y-transl_y; + brwin->winrect.width=attribs.width; + brwin->winrect.height=attribs.height; - if ((brwin->rect.x+brwin->rect.width>specs->width)|| - (brwin->rect.y+brwin->rect.height>specs->height)) { + if ((brwin->winrect.x+brwin->winrect.width>specs->width)|| + (brwin->winrect.y+brwin->winrect.height>specs->height)) { fprintf(stderr,"Window must be on visible screen area!\n"); return FALSE; } - brwin->rrect.x=brwin->rect.x+args->x; - brwin->rrect.y=brwin->rect.y+args->y; - brwin->rrect.width=((args->width)? args->width:brwin->rect.width-args->x); - brwin->rrect.height=((args->height)? args->height:brwin->rect.height-args->y); + brwin->rrect.x=brwin->winrect.x+args->x; + brwin->rrect.y=brwin->winrect.y+args->y; + brwin->rrect.width=((args->width)? args->width:brwin->winrect.width-args->x); + brwin->rrect.height=((args->height)? args->height:brwin->winrect.height-args->y); - if ((args->x+brwin->rrect.width>brwin->rect.width)|| - (args->y+brwin->rrect.height>brwin->rect.height)) { + if ((args->x+brwin->rrect.width>brwin->winrect.width)|| + (args->y+brwin->rrect.height>brwin->winrect.height)) { fprintf(stderr,"Specified Area is larger than window!\n"); return FALSE; } |