Skip to content

Commit

Permalink
Restore variable names that have been accidentally renamed
Browse files Browse the repository at this point in the history
  • Loading branch information
sincos2854 committed Jul 5, 2023
1 parent fe23d59 commit e761a60
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions extractor.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,19 +175,19 @@ int getBMPFromJXL(const uint8_t* input_data, size_t file_size,HANDLE* h_bitmap_i
int j;
for (j = 0; j < height / 2; j++)
{
DWORD* cur_1 = (DWORD*)bitmap_data + j * width;
DWORD* cur_2 = (DWORD*)bitmap_data + (height - (1 + j)) * width;
DWORD* curbit_1 = (DWORD*)bitmap_data + j * width;
DWORD* curbit_2 = (DWORD*)bitmap_data + (height - (1 + j)) * width;
for (int i = 0; i < width; i++)
{
DWORD tmp =
((cur_1[i] << 16) & 0x00ff0000) |
((cur_1[i] >> 16) & 0x000000ff) |
((cur_1[i]) & 0xff00ff00);
cur_1[i] =
((cur_2[i] << 16) & 0x00ff0000) |
((cur_2[i] >> 16) & 0x000000ff) |
((cur_2[i]) & 0xff00ff00);
cur_2[i] = tmp;
((curbit_1[i] << 16) & 0x00ff0000) |
((curbit_1[i] >> 16) & 0x000000ff) |
((curbit_1[i]) & 0xff00ff00);
curbit_1[i] =
((curbit_2[i] << 16) & 0x00ff0000) |
((curbit_2[i] >> 16) & 0x000000ff) |
((curbit_2[i]) & 0xff00ff00);
curbit_2[i] = tmp;
}
}
if (height % 2)
Expand Down

0 comments on commit e761a60

Please sign in to comment.