fixed display (calculation of position)

This commit is contained in:
damdoum 2007-01-15 17:19:05 +00:00
parent 1cdac6afb2
commit 76980ec082
1 changed files with 6 additions and 6 deletions

View File

@ -65,8 +65,8 @@ static void wtools_2_update() {
m8 = *mem8; *mem8 = MMU_readByte(cpu, addr);
if (m8 != *mem8) {
sprintf(txt, "%02X", *mem8);
dTools_display_clear_char(&dsp, 12+j, i, 3);
dTools_display_draw_text(&dsp, 12+j, i, txt);
dTools_display_clear_char(&dsp, 12+3*j, i, 3);
dTools_display_draw_text(&dsp, 12+3*j, i, txt);
}
}
}
@ -77,8 +77,8 @@ static void wtools_2_update() {
m16 = *mem16; *mem16 = MMU_readHWord(cpu, addr);
if (m16 != *mem16) {
sprintf(txt, " %04X", *mem16);
dTools_display_clear_char(&dsp, 12+j, i, 6);
dTools_display_draw_text(&dsp, 12+j, i, txt);
dTools_display_clear_char(&dsp, 12+6*j, i, 6);
dTools_display_draw_text(&dsp, 12+6*j, i, txt);
}
}
}
@ -89,8 +89,8 @@ static void wtools_2_update() {
m32 = *mem32; *mem32 = MMU_readWord(cpu, addr);
if (m32 != *mem32) {
sprintf(txt, " %08X", *mem32);
dTools_display_clear_char(&dsp, 12+j, i, 12);
dTools_display_draw_text(&dsp, 12+j, i, txt);
dTools_display_clear_char(&dsp, 12+12*j, i, 12);
dTools_display_draw_text(&dsp, 12+6*j, i, txt);
}
}
}