- [NEW] Durant l'execució la finestra de debug està dimmada
- [NEW] La finestra del spectrum mostra en el titol si està stoppada l'execució - [FIX] Durante el debuguech la finestra del spectrum ara s'actualitza
This commit is contained in:
10
z80debug.cpp
10
z80debug.cpp
@@ -153,6 +153,7 @@ namespace z80debug
|
||||
|
||||
void stop()
|
||||
{
|
||||
zxscreen::setTitle(" (stopped)");
|
||||
pause();
|
||||
is_debugging = true;
|
||||
show();
|
||||
@@ -160,6 +161,7 @@ namespace z80debug
|
||||
}
|
||||
|
||||
void cont() {
|
||||
zxscreen::setTitle("");
|
||||
is_debugging = is_paused = false;
|
||||
//hide();
|
||||
refresh();
|
||||
@@ -380,6 +382,14 @@ namespace z80debug
|
||||
ui::printtxt(strlen(console)+1,0, "\x7F", COLOR_WHITE);
|
||||
ui::printtxt(1,1, console_error, COLOR_RED);
|
||||
|
||||
if (!is_debugging) {
|
||||
SDL_SetRenderDrawBlendMode(ren, SDL_BLENDMODE_BLEND);
|
||||
SDL_SetRenderDrawColor(ren, 0, 0, 0, 128);
|
||||
SDL_Rect rect {0,0,83*CHR_W, 34*CHR_H};
|
||||
SDL_GetWindowSize(win, &rect.w, &rect.h);
|
||||
SDL_RenderFillRect(ren, &rect);
|
||||
}
|
||||
|
||||
SDL_RenderPresent(ren);
|
||||
|
||||
for (int i=0; i<65536; ++i) mem_modified[i] = false;
|
||||
|
||||
Reference in New Issue
Block a user