updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / tvtime_patched / tvtime-1.0.2-fullscreen-crash-fix.patch
blobf9c2c1355952f07b142cf8b58bcfa4c6b4e56250
1 This is the patch from
2 http://sourceforge.net/tracker/?func=detail&aid=1908776&group_id=64301&atid=506989
3 to fix a crash when switching to full screen.
4 diff -up tvtime/src/xfullscreen.c.fsbadval tvtime/src/xfullscreen.c
5 --- tvtime/src/xfullscreen.c.fsbadval 2008-03-06 15:17:11.000000000 +0100
6 +++ tvtime/src/xfullscreen.c 2008-03-06 15:18:21.000000000 +0100
7 @@ -263,6 +263,10 @@ void xfullscreen_get_position( xfullscre
8 int max_area = -1;
9 int i;
11 + *x = xf->heads[ 0 ].x;
12 + *y = xf->heads[ 0 ].y;
13 + *w = xf->heads[ 0 ].w;
14 + *h = xf->heads[ 0 ].h;
15 for( i = 0; i < xf->nheads; i++ ) {
16 int head_x1 = xf->heads[ i ].x;
17 int head_x2 = xf->heads[ i ].x + xf->heads[ i ].w - 1;