winex11.drv: Assign to structs instead of using memcpy.
This commit is contained in:
parent
7b380e0aeb
commit
5d038523e9
@ -2900,7 +2900,7 @@ static Atom X11DRV_SelectionRequest_MULTIPLE( HWND hWnd, XSelectionRequestEvent
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Set up an XSelectionRequestEvent for this (target,property) pair */
|
/* Set up an XSelectionRequestEvent for this (target,property) pair */
|
||||||
memcpy( &event, pevent, sizeof(XSelectionRequestEvent) );
|
event = *pevent;
|
||||||
event.target = targetPropList[i];
|
event.target = targetPropList[i];
|
||||||
event.property = targetPropList[i+1];
|
event.property = targetPropList[i+1];
|
||||||
|
|
||||||
|
@ -984,7 +984,7 @@ int X11DRV_AttachEventQueueToTablet(HWND hOwner)
|
|||||||
*/
|
*/
|
||||||
int X11DRV_GetCurrentPacket(LPWTPACKET packet)
|
int X11DRV_GetCurrentPacket(LPWTPACKET packet)
|
||||||
{
|
{
|
||||||
memcpy(packet,&gMsgPacket,sizeof(WTPACKET));
|
*packet = gMsgPacket;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -806,7 +806,7 @@ static BOOL UploadGlyph(X11DRV_PDEVICE *physDev, int glyph, AA_Type format)
|
|||||||
formatEntry->bitmaps[glyph] = buf;
|
formatEntry->bitmaps[glyph] = buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
memcpy(&formatEntry->gis[glyph], &gi, sizeof(gi));
|
formatEntry->gis[glyph] = gi;
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user