Commit 0d9cf862 authored by aymeric's avatar aymeric
Browse files

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
parent 72a1fe85
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment