Skip to content

Commit

Permalink
Linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rtoumazet committed Sep 24, 2024
1 parent 1e93aa5 commit b7def88
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions saturnin/src/video/vdp2/vdp2.h
Original file line number Diff line number Diff line change
Expand Up @@ -1624,22 +1624,32 @@ class Vdp2 {
constexpr auto row_offset = u8{4};
auto current_address = vram_start_address + cell_address;
auto row = DataExtraction{};
for (u32 i = 0; i < 8; ++i) {

auto readDot = [&]() {
row.as_11bits = modules_.memory()->read<u32>(current_address);
readPalette2048Dot<T>(texture_data, screen, row.as_11bits >> DataExtraction::As11Bits::dot0_shift);
readPalette2048Dot<T>(texture_data, screen, row.as_11bits >> DataExtraction::As11Bits::dot1_shift);
};
for (u32 i = 0; i < 8; ++i) {
// row.as_11bits = modules_.memory()->read<u32>(current_address);
// readPalette2048Dot<T>(texture_data, screen, row.as_11bits >> DataExtraction::As11Bits::dot0_shift);
// readPalette2048Dot<T>(texture_data, screen, row.as_11bits >> DataExtraction::As11Bits::dot1_shift);
readDot();
current_address += row_offset;
row.as_11bits = modules_.memory()->read<u32>(current_address);
readPalette2048Dot<T>(texture_data, screen, row.as_11bits >> DataExtraction::As11Bits::dot0_shift);
readPalette2048Dot<T>(texture_data, screen, row.as_11bits >> DataExtraction::As11Bits::dot1_shift);
// row.as_11bits = modules_.memory()->read<u32>(current_address);
// readPalette2048Dot<T>(texture_data, screen, row.as_11bits >> DataExtraction::As11Bits::dot0_shift);
// readPalette2048Dot<T>(texture_data, screen, row.as_11bits >> DataExtraction::As11Bits::dot1_shift);
readDot();
current_address += row_offset;
row.as_11bits = modules_.memory()->read<u32>(current_address);
readPalette2048Dot<T>(texture_data, screen, row.as_11bits >> DataExtraction::As11Bits::dot0_shift);
readPalette2048Dot<T>(texture_data, screen, row.as_11bits >> DataExtraction::As11Bits::dot1_shift);
// row.as_11bits = modules_.memory()->read<u32>(current_address);
// readPalette2048Dot<T>(texture_data, screen, row.as_11bits >> DataExtraction::As11Bits::dot0_shift);
// readPalette2048Dot<T>(texture_data, screen, row.as_11bits >> DataExtraction::As11Bits::dot1_shift);
readDot();
current_address += row_offset;
row.as_11bits = modules_.memory()->read<u32>(current_address);
readPalette2048Dot<T>(texture_data, screen, row.as_11bits >> DataExtraction::As11Bits::dot0_shift);
readPalette2048Dot<T>(texture_data, screen, row.as_11bits >> DataExtraction::As11Bits::dot1_shift);
// row.as_11bits = modules_.memory()->read<u32>(current_address);
// readPalette2048Dot<T>(texture_data, screen, row.as_11bits >> DataExtraction::As11Bits::dot0_shift);
// readPalette2048Dot<T>(texture_data, screen, row.as_11bits >> DataExtraction::As11Bits::dot1_shift);
readDot();
current_address += row_offset;
}
}
Expand Down

0 comments on commit b7def88

Please sign in to comment.