Changeset 706:7db3e02ea2e2 in mediastreamer2


Ignore:
Timestamp:
Oct 2, 2009 6:54:52 PM (4 years ago)
Author:
aymeric <aymeric@…>
Branch:
default
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • linphone/mediastreamer2/src/videoout.c

    r705 r706  
    521521                        0,0,bi.biWidth,bi.biHeight,0); 
    522522 
    523                 ret=DrawDibDraw(wd->ddh,hdc,0,rect.bottom-(rect.bottom-h)/2, 
    524                         rect.right,(rect.bottom-h)/2, 
     523                ret=DrawDibDraw(wd->ddh,hdc,0,(rect.bottom)-((rect.bottom-h+1)&~0x1)/2, 
     524                        rect.right,((rect.bottom-h+1)&~0x1)/2, 
    525525                        &bi,wd->black, 
    526526                        0,0,bi.biWidth,bi.biHeight,0); 
    527527 
    528                 ret=DrawDibDraw(wd->ddh,hdc,rect.right-(rect.right-w)/2,0, 
    529                         (rect.right-w)/2,rect.bottom, 
     528                ret=DrawDibDraw(wd->ddh,hdc,(rect.right)-((rect.right-w+1)&~0x1)/2,0, 
     529                        ((rect.right-w+1)&~0x1)/2,rect.bottom, 
    530530                        &bi,wd->black, 
    531531                        0,0,bi.biWidth,bi.biHeight,0); 
Note: See TracChangeset for help on using the changeset viewer.