screen updates on color change alone
This commit is contained in:
@@ -85,6 +85,7 @@ fn regenerate_palettes(state: *uxn) void = {
|
||||
state.palette[2] = ((r & 0x00f0) << 4) | ((g & 0x00f0) >> 0) | ((b & 0x00f0) >> 4);
|
||||
state.palette[3] = ((r & 0x000f) << 8) | ((g & 0x000f) << 4) | ((b & 0x000f) >> 0);
|
||||
// fmt::printfln("Palette Color0: {:x} Color1: {:x} Color2: {:x} Color3: {:x}", state.palette[0], state.palette[1],state.palette[2],state.palette[3])!;
|
||||
state.screen_update = true;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user