dix: MakeRootTile(): constify from field

It's assigned a const char* value and not writing into it,
so it should be const, too (compiler correctly warning about that)

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-11-04 16:17:30 +01:00
committed by Enrico Weigelt
parent 624ec5d226
commit 21db844ea1

View File

@@ -504,7 +504,7 @@ MakeRootTile(WindowPtr pWin)
GCPtr pGC;
unsigned char back[128];
int len = BitmapBytePad(sizeof(long));
unsigned char *from, *to;
unsigned char *to;
pWin->background.pixmap = (*pScreen->CreatePixmap) (pScreen, 4, 4,
pScreen->rootDepth, 0);
@@ -526,7 +526,8 @@ MakeRootTile(WindowPtr pWin)
ValidateGC((DrawablePtr) pWin->background.pixmap, pGC);
from = (screenInfo.bitmapBitOrder == LSBFirst) ? _back_lsb : _back_msb;
const unsigned char *from
= (screenInfo.bitmapBitOrder == LSBFirst) ? _back_lsb : _back_msb;
to = back;
for (int i = 4; i > 0; i--, from++)