summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2023-05-07 12:48:02 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2023-05-07 12:48:02 -0700
commitc5eb70d9cb621bbfc22bf112d4c2dbf3e7d631c7 (patch)
tree8e825b6b90920ab9e72ba849a05b002ef3812713
parentee2b4beba48dadab804d1b6f79fbaaeaf26ed904 (diff)
AlpOffscreenAccelInit: Use c99 designated struct initializer
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/alp_driver.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/alp_driver.c b/src/alp_driver.c
index 7a6e93c..d296614 100644
--- a/src/alp_driver.c
+++ b/src/alp_driver.c
@@ -2137,11 +2137,12 @@ AlpOffscreenAccelInit(ScrnInfoPtr pScrn)
{
/* TODO: probably not correct if rotated */
- BoxRec box;
- box.x1=0;
- box.y1=0;
- box.x2=pScrn->virtualX;
- box.y2= pCir->offscreen_offset / pCir->pitch;
+ BoxRec box = {
+ .x1 = 0,
+ .y1 = 0,
+ .x2 = pScrn->virtualX,
+ .y2 = pCir->offscreen_offset / pCir->pitch
+ };
xf86DrvMsg(pScrn->scrnIndex, X_INFO,
"Using %d lines for offscreen memory\n",
box.y2 - pScrn->virtualY);