mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-24 06:38:08 +00:00
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:
parent
72a1fe85cb
commit
0d9cf862b3
1 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue