mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-09 15:28:08 +02:00
present: add missing byte swapping for various fields
Co-Authored-by: Claude Code <noreply@anthropic.com> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2181>
This commit is contained in:
parent
ac45f9b29e
commit
a5ac3c8712
1 changed files with 6 additions and 1 deletions
|
|
@ -353,14 +353,18 @@ sproc_present_pixmap(ClientPtr client)
|
|||
|
||||
swapl(&stuff->window);
|
||||
swapl(&stuff->pixmap);
|
||||
swapl(&stuff->serial);
|
||||
swapl(&stuff->valid);
|
||||
swapl(&stuff->update);
|
||||
swaps(&stuff->x_off);
|
||||
swaps(&stuff->y_off);
|
||||
swapl(&stuff->target_crtc);
|
||||
swapl(&stuff->wait_fence);
|
||||
swapl(&stuff->idle_fence);
|
||||
swapl(&stuff->options);
|
||||
swapll(&stuff->target_msc);
|
||||
swapll(&stuff->divisor);
|
||||
swapll(&stuff->remainder);
|
||||
swapl(&stuff->idle_fence);
|
||||
return (*proc_present_vector[stuff->presentReqType]) (client);
|
||||
}
|
||||
|
||||
|
|
@ -383,6 +387,7 @@ sproc_present_select_input (ClientPtr client)
|
|||
REQUEST(xPresentSelectInputReq);
|
||||
REQUEST_SIZE_MATCH(xPresentSelectInputReq);
|
||||
|
||||
swapl(&stuff->eid);
|
||||
swapl(&stuff->window);
|
||||
swapl(&stuff->eventMask);
|
||||
return (*proc_present_vector[stuff->presentReqType]) (client);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue