mirror of
https://github.com/FranLMSP/snes.git
synced 2026-01-01 07:21:35 -05:00
show all cgram colors
This commit is contained in:
@@ -233,14 +233,16 @@ fn build_cgram_window(ctx: &egui::Context, ppu_debug_options: &mut PPUDebugContr
|
||||
|
||||
ui.separator();
|
||||
|
||||
ui.horizontal(|ui| {
|
||||
ui.label("0x00: ");
|
||||
paint_cgram_color_address(ui, 0x00, ppu_registers);
|
||||
ui.label("0x01: ");
|
||||
paint_cgram_color_address(ui, 0x01, ppu_registers);
|
||||
ui.label("0x02: ");
|
||||
paint_cgram_color_address(ui, 0x02, ppu_registers);
|
||||
});
|
||||
let mut address: u8 = 0x00;
|
||||
for row in 0x00..=0x0F {
|
||||
ui.horizontal(|ui| {
|
||||
ui.label(format!("0x{:02X}: ", row));
|
||||
for _ in 0x00..=0x0F {
|
||||
paint_cgram_color_address(ui, address, ppu_registers);
|
||||
address = address.wrapping_add(1);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user