Re: [8/10] WineD3D: Move the scissor rectangle to the state table,Stefan Dösinger
Vitaliy Margolen
wine-devel at kievinfo.com
Mon Feb 19 22:59:58 CST 2007
Stefan Dösinger wrote:
> + if(memcmp(&This->updateStateBlock->scissorRect, pRect, sizeof(*pRect)) == 0) {
> + TRACE("App is setting the old scissor rectangle over, nothing to do\n");
> + return WINED3D_OK;
> + }
> memcpy(&This->updateStateBlock->scissorRect, pRect, sizeof(*pRect));
You should use EqualRect() and CopyRect() instead of memcmp and memcpy for
RECTs.
Vitaliy
More information about the wine-devel
mailing list