mirror of
https://github.com/cc65/cc65.git
synced 2025-08-15 06:27:36 +00:00
Remove redundant code
This commit is contained in:
@@ -403,7 +403,6 @@ Bitmap* ReadPCXFile (const Collection* A)
|
||||
|
||||
}
|
||||
} else {
|
||||
if (P->BPP == 4) {
|
||||
/* One plane with 8bpp is indexed */
|
||||
for (Y = 0, Px = B->Data; Y < P->Height; ++Y) {
|
||||
|
||||
@@ -418,22 +417,6 @@ Bitmap* ReadPCXFile (const Collection* A)
|
||||
Px->Index = L[X];
|
||||
}
|
||||
}
|
||||
} else {
|
||||
/* One plane with 8bpp is indexed */
|
||||
for (Y = 0, Px = B->Data; Y < P->Height; ++Y) {
|
||||
|
||||
/* Read the plane */
|
||||
ReadPlane (F, P, L);
|
||||
|
||||
/* Create pixels */
|
||||
for (X = 0; X < P->Width; ++X, ++Px) {
|
||||
if (L[X] > MaxIdx) {
|
||||
MaxIdx = L[X];
|
||||
}
|
||||
Px->Index = L[X];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* One plane means we have a palette which is either part of the header
|
||||
|
Reference in New Issue
Block a user