1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-19 19:16:34 +00:00

Correct type.

This commit is contained in:
Thomas Harte
2024-01-17 09:43:44 -05:00
parent 1ccb2e72fc
commit 16baa05aec
+4 -1
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);
}