mirror of
https://github.com/cc65/cc65.git
synced 2025-01-12 02:30:44 +00:00
Remove redundant code
This commit is contained in:
parent
05766d4bfe
commit
5ec5050af2
@ -403,35 +403,18 @@ Bitmap* ReadPCXFile (const Collection* A)
|
|||||||
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (P->BPP == 4) {
|
/* One plane with 8bpp is indexed */
|
||||||
/* One plane with 8bpp is indexed */
|
for (Y = 0, Px = B->Data; Y < P->Height; ++Y) {
|
||||||
for (Y = 0, Px = B->Data; Y < P->Height; ++Y) {
|
|
||||||
|
|
||||||
/* Read the plane */
|
/* Read the plane */
|
||||||
ReadPlane (F, P, L);
|
ReadPlane (F, P, L);
|
||||||
|
|
||||||
/* Create pixels */
|
/* Create pixels */
|
||||||
for (X = 0; X < P->Width; ++X, ++Px) {
|
for (X = 0; X < P->Width; ++X, ++Px) {
|
||||||
if (L[X] > MaxIdx) {
|
if (L[X] > MaxIdx) {
|
||||||
MaxIdx = L[X];
|
MaxIdx = L[X];
|
||||||
}
|
|
||||||
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];
|
|
||||||
}
|
}
|
||||||
|
Px->Index = L[X];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user