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
This commit is contained in:
aymeric 2009-10-02 16:54:52 +00:00
parent 72a1fe85cb
commit 0d9cf862b3

View file

@ -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);