Skip to content
Snippets Groups Projects
Commit ca04a9de authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard
Browse files

wined3d: Use CopyRect / EqualRect.

parent efc03f0a
No related branches found
No related tags found
No related merge requests found
......@@ -2813,11 +2813,11 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetScissorRect(IWineD3DDevice *iface, C
This->updateStateBlock->set.scissorRect = TRUE;
This->updateStateBlock->changed.scissorRect = TRUE;
if(memcmp(&This->updateStateBlock->scissorRect, pRect, sizeof(*pRect)) == 0) {
if(EqualRect(&This->updateStateBlock->scissorRect, pRect)) {
TRACE("App is setting the old scissor rectangle over, nothing to do\n");
return WINED3D_OK;
}
memcpy(&This->updateStateBlock->scissorRect, pRect, sizeof(*pRect));
CopyRect(&This->updateStateBlock->scissorRect, pRect);
if(This->isRecordingState) {
TRACE("Recording... not performing anything\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment