From 0d9cf862b33a9c05ba05dec1b05a5e113a8abefe Mon Sep 17 00:00:00 2001 From: aymeric Date: Fri, 2 Oct 2009 16:54:52 +0000 Subject: [PATCH] calculate exact position and size of black rectangle borders git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@694 3f6dc0c8-ddfe-455d-9043-3cd528dc4637 --- linphone/mediastreamer2/src/videoout.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/linphone/mediastreamer2/src/videoout.c b/linphone/mediastreamer2/src/videoout.c index 16c727db2..544ed6b53 100644 --- a/linphone/mediastreamer2/src/videoout.c +++ b/linphone/mediastreamer2/src/videoout.c @@ -520,13 +520,13 @@ static void win_display_update(MSDisplay *obj){ &bi,wd->black, 0,0,bi.biWidth,bi.biHeight,0); - ret=DrawDibDraw(wd->ddh,hdc,0,rect.bottom-(rect.bottom-h)/2, - rect.right,(rect.bottom-h)/2, + ret=DrawDibDraw(wd->ddh,hdc,0,(rect.bottom)-((rect.bottom-h+1)&~0x1)/2, + rect.right,((rect.bottom-h+1)&~0x1)/2, &bi,wd->black, 0,0,bi.biWidth,bi.biHeight,0); - ret=DrawDibDraw(wd->ddh,hdc,rect.right-(rect.right-w)/2,0, - (rect.right-w)/2,rect.bottom, + ret=DrawDibDraw(wd->ddh,hdc,(rect.right)-((rect.right-w+1)&~0x1)/2,0, + ((rect.right-w+1)&~0x1)/2,rect.bottom, &bi,wd->black, 0,0,bi.biWidth,bi.biHeight,0);