mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-15 05:02:13 -04:00
RegistersWidget: Fix type warnings.
This commit is contained in:
parent
74ecff13ad
commit
2033967dc6
2 changed files with 17 additions and 17 deletions
|
@ -173,9 +173,9 @@ void RegistersWidget::paint(Painter& painter) {
|
|||
void RegistersWidget::draw_legend(const Coord left, Painter& painter) {
|
||||
const auto pos = screen_pos();
|
||||
|
||||
for(int i=0; i<config.registers_count; i+=config.registers_per_row()) {
|
||||
for(size_t i=0; i<config.registers_count; i+=config.registers_per_row()) {
|
||||
const Point offset {
|
||||
left, (i / config.registers_per_row()) * row_height
|
||||
left, static_cast<int>((i / config.registers_per_row()) * row_height)
|
||||
};
|
||||
|
||||
const auto text = to_string_hex(i, config.legend_length());
|
||||
|
@ -193,10 +193,10 @@ void RegistersWidget::draw_values(
|
|||
) {
|
||||
const auto pos = screen_pos();
|
||||
|
||||
for(int i=0; i<config.registers_count; i++) {
|
||||
for(size_t i=0; i<config.registers_count; i++) {
|
||||
const Point offset = {
|
||||
left + config.legend_width() + 8 + (i % config.registers_per_row()) * (config.value_width() + 8),
|
||||
(i / config.registers_per_row()) * row_height
|
||||
static_cast<int>(left + config.legend_width() + 8 + (i % config.registers_per_row()) * (config.value_width() + 8)),
|
||||
static_cast<int>((i / config.registers_per_row()) * row_height)
|
||||
};
|
||||
|
||||
const auto value = reader(i);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue