- [FIX] El debugger se agarrotava quan duia un rato

- [FIX] No calculava correctament l'adreça a la que anar en una interrupció de mode 2
- [NEW] Afegit commando "goto adreça" al debugger
This commit is contained in:
2024-12-06 12:23:30 +01:00
parent 970aaa518f
commit edf8728b04
3 changed files with 9 additions and 3 deletions

View File

@@ -108,7 +108,7 @@ int main(int argc, char *argv[])
zxscreen::redraw();
}
if (e.type == SDL_MOUSEWHEEL) {
if (e.wheel.mouseX<46 && e.wheel.mouseY<20) {
if (e.wheel.mouseX<46*CHR_W && e.wheel.mouseY<20*CHR_H) {
if (e.wheel.y>0) {
z80debug::cursorback();
z80debug::refresh();
@@ -245,7 +245,7 @@ int main(int argc, char *argv[])
time = SDL_GetTicks();
}
}
} else if (z80debug::paused()) {
} else if (!z80debug::debugging() && z80debug::paused()) {
zxscreen::redraw(false);
ui::menu::show();
zxscreen::present();