Skip to content

Commit

Permalink
1.0: clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
zvezdochiot committed Oct 26, 2023
1 parent 6ce8210 commit c59e5a6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions src/scalenx.h
Original file line number Diff line number Diff line change
Expand Up @@ -190,14 +190,6 @@ static void ScaleN3X (unsigned char *src, int height, int width, int channels, u
rI = PixelCopy(pE, channels);
pBH = PixelNear(pE, pB, pH, channels);
pDF = PixelNear(pE, pD, pF, channels);
if (PixelEql(pBH, pE, channels) && PixelEql(pDF, pE, channels))
{
rA = PixelNear(pE, pB, pD, channels);
rB = PixelNear(pE, pB, pF, channels);
rC = PixelNear(pE, pH, pD, channels);
rD = PixelNear(pE, pH, pF, channels);
}

if (PixelEql(pBH, pE, channels) && PixelEql(pDF, pE, channels))
{
rA = PixelNear(pE, pB, pD, channels);
Expand Down
2 changes: 1 addition & 1 deletion src/stbiscalenx.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ int main(int argc, char **argv)
int fhelp = 0;
int opt;
size_t szorig, szdest, ki, kd;
unsigned char *data = NULL, *resize_data = NULL, *ris_data = NULL;
unsigned char *data = NULL, *resize_data = NULL;
stbi_uc *img = NULL;

while ((opt = getopt(argc, argv, ":k:h")) != -1)
Expand Down

0 comments on commit c59e5a6

Please sign in to comment.