mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 02:32:06 +00:00
Fix a few checkpatch issues
This commit is contained in:
@@ -497,7 +497,6 @@ void sym_AddEqu(char *tzSym, int32_t value)
|
|||||||
nsym->pScope = NULL;
|
nsym->pScope = NULL;
|
||||||
updateSymbolFilename(nsym);
|
updateSymbolFilename(nsym);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -199,8 +199,8 @@ static struct RawIndexedImage *indexed_png_to_raw(struct PNGImage *img)
|
|||||||
raw_image = create_raw_image(img->width, img->height, colors);
|
raw_image = create_raw_image(img->width, img->height, colors);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Transparent palette entries are removed, and the palette is collapsed.
|
* Transparent palette entries are removed, and the palette is
|
||||||
* Transparent pixels are then replaced with palette index 0.
|
* collapsed. Transparent pixels are then replaced with palette index 0.
|
||||||
* This way, an indexed PNG can contain transparent pixels in *addition*
|
* This way, an indexed PNG can contain transparent pixels in *addition*
|
||||||
* to 4 normal colors.
|
* to 4 normal colors.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -695,24 +695,24 @@ void CreateSymbolTable(void)
|
|||||||
if ((tSymbol->Type == SYM_EXPORT) &&
|
if ((tSymbol->Type == SYM_EXPORT) &&
|
||||||
((tSymbol->pSection == pSect) ||
|
((tSymbol->pSection == pSect) ||
|
||||||
(tSymbol->pSection == NULL))) {
|
(tSymbol->pSection == NULL))) {
|
||||||
if (tSymbol->pSection == NULL)
|
if (tSymbol->pSection == NULL) {
|
||||||
sym_CreateSymbol(
|
sym_CreateSymbol(tSymbol->pzName,
|
||||||
tSymbol->pzName,
|
|
||||||
tSymbol->nOffset,
|
tSymbol->nOffset,
|
||||||
-1,
|
-1,
|
||||||
tSymbol->pzObjFileName,
|
tSymbol->pzObjFileName,
|
||||||
tSymbol->pzFileName,
|
tSymbol->pzFileName,
|
||||||
tSymbol->nFileLine);
|
tSymbol->nFileLine);
|
||||||
else
|
} else {
|
||||||
sym_CreateSymbol(
|
sym_CreateSymbol(tSymbol->pzName,
|
||||||
tSymbol->pzName,
|
pSect->nOrg +
|
||||||
pSect->nOrg + tSymbol->nOffset,
|
tSymbol->nOffset,
|
||||||
pSect->nBank,
|
pSect->nBank,
|
||||||
tSymbol->pzObjFileName,
|
tSymbol->pzObjFileName,
|
||||||
tSymbol->pzFileName,
|
tSymbol->pzFileName,
|
||||||
tSymbol->nFileLine);
|
tSymbol->nFileLine);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
pSect = pSect->pNext;
|
pSect = pSect->pNext;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user