1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-25 18:30:21 +00:00

Accepts GCC's suggestion of extra clarity brackets.

This commit is contained in:
Thomas Harte 2018-10-23 22:36:23 -04:00
parent f7b0f1af70
commit 286783e880

View File

@ -733,12 +733,12 @@ class Base {
size_t sub_row[2]; size_t sub_row[2];
}; };
const RowInfo scrolled_row_info = { const RowInfo scrolled_row_info = {
pattern_name_address & size_t(((scrolled_row & ~7) << 3) | 0x3800) - pattern_name_offset, (pattern_name_address & size_t(((scrolled_row & ~7) << 3) | 0x3800)) - pattern_name_offset,
{static_cast<size_t>((scrolled_row & 7) << 2), 28 ^ static_cast<size_t>((scrolled_row & 7) << 2)} {static_cast<size_t>((scrolled_row & 7) << 2), 28 ^ static_cast<size_t>((scrolled_row & 7) << 2)}
}; };
RowInfo row_info; RowInfo row_info;
if(master_system_.vertical_scroll_lock) { if(master_system_.vertical_scroll_lock) {
row_info.pattern_address_base = pattern_name_address & size_t(((write_pointer_.row & ~7) << 3) | 0x3800) - pattern_name_offset; (row_info.pattern_address_base = pattern_name_address & size_t(((write_pointer_.row & ~7) << 3) | 0x3800)) - pattern_name_offset;
row_info.sub_row[0] = size_t((write_pointer_.row & 7) << 2); row_info.sub_row[0] = size_t((write_pointer_.row & 7) << 2);
row_info.sub_row[1] = 28 ^ size_t((write_pointer_.row & 7) << 2); row_info.sub_row[1] = 28 ^ size_t((write_pointer_.row & 7) << 2);
} else row_info = scrolled_row_info; } else row_info = scrolled_row_info;