Puzzle about ExtSelectClipRgn?

Changhui Liu liuchanghui at linuxdeepin.com
Wed Dec 3 02:36:45 CST 2014

Dear all, I test this code :

void test (HDC hdc, HRGN hregion)
    RECT srcbox;
    RECT dstbox;

    GetClipBox(hdc, &dstbox);
    GetRgnBox(hregion, &srcbox);

    TRACE("Before ExtSelectClipRgn:%s,%s\n",
            wine_dbgstr_rect(&srcbox), wine_dbgstr_rect(&dstbox) ); 

    ExtSelectClipRgn(hdc, hregion, RGN_AND ); 
    TRACE("After ExtSelectClipRgn:%s,%s\n", wine_dbgstr_rect(&dstbox) ); 

It output in wine is : 
Before ExtSelectClipRgn:(693,5)-(763,28),(693,5)-(763,28) 
After ExtSelectClipRgn:(693,5)-(693,5) 

But I think it should be output:
Before ExtSelectClipRgn:(693,5)-(763,28),(693,5)-(763,28) 
After ExtSelectClipRgn:(693,5)-(763,28)

Where is my understanding mistake, or is it a bug in ExtSelectClipRgn?

Thank you!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20141203/11bda26e/attachment.html>

More information about the wine-devel mailing list