mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +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;
|
||||
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);
|
||||
|
||||
/*
|
||||
* Transparent palette entries are removed, and the palette is collapsed.
|
||||
* Transparent pixels are then replaced with palette index 0.
|
||||
* Transparent palette entries are removed, and the palette is
|
||||
* collapsed. Transparent pixels are then replaced with palette index 0.
|
||||
* This way, an indexed PNG can contain transparent pixels in *addition*
|
||||
* to 4 normal colors.
|
||||
*/
|
||||
|
||||
@@ -695,24 +695,24 @@ void CreateSymbolTable(void)
|
||||
if ((tSymbol->Type == SYM_EXPORT) &&
|
||||
((tSymbol->pSection == pSect) ||
|
||||
(tSymbol->pSection == NULL))) {
|
||||
if (tSymbol->pSection == NULL)
|
||||
sym_CreateSymbol(
|
||||
tSymbol->pzName,
|
||||
if (tSymbol->pSection == NULL) {
|
||||
sym_CreateSymbol(tSymbol->pzName,
|
||||
tSymbol->nOffset,
|
||||
-1,
|
||||
tSymbol->pzObjFileName,
|
||||
tSymbol->pzFileName,
|
||||
tSymbol->nFileLine);
|
||||
else
|
||||
sym_CreateSymbol(
|
||||
tSymbol->pzName,
|
||||
pSect->nOrg + tSymbol->nOffset,
|
||||
} else {
|
||||
sym_CreateSymbol(tSymbol->pzName,
|
||||
pSect->nOrg +
|
||||
tSymbol->nOffset,
|
||||
pSect->nBank,
|
||||
tSymbol->pzObjFileName,
|
||||
tSymbol->pzFileName,
|
||||
tSymbol->nFileLine);
|
||||
}
|
||||
}
|
||||
}
|
||||
pSect = pSect->pNext;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user