1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-21 21:33:54 +00:00

Correct type.

This commit is contained in:
Thomas Harte 2024-01-17 09:43:44 -05:00
parent 1ccb2e72fc
commit 16baa05aec

View File

@ -279,7 +279,10 @@ void Video::output_row(int row, int start, int end) {
line_control_ = ram_[0x19d00 + row];
const int palette_base = (line_control_ & 15) * 32 + 0x19e00;
for(int c = 0; c < 16; c++) {
const int entry = ram_[palette_base + (c << 1)] | (ram_[palette_base + (c << 1) + 1] << 8);
const auto entry = uint16_t(
ram_[palette_base + (c << 1)] |
(ram_[palette_base + (c << 1) + 1] << 8)
);
palette_[c] = convulve(entry);
}