From c5eb70d9cb621bbfc22bf112d4c2dbf3e7d631c7 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 7 May 2023 12:48:02 -0700 Subject: AlpOffscreenAccelInit: Use c99 designated struct initializer Signed-off-by: Alan Coopersmith --- src/alp_driver.c | 11 ++++++----- 1 file 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); -- cgit v1.2.3