- [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:
@@ -92,8 +92,12 @@ namespace zxscreen
|
||||
|
||||
bool eventHandler(SDL_Event *e)
|
||||
{
|
||||
if ((e->type==SDL_WINDOWEVENT) && (e->window.event==SDL_WINDOWEVENT_CLOSE)) {
|
||||
return false;
|
||||
if (e->type==SDL_WINDOWEVENT) {
|
||||
if (e->window.event==SDL_WINDOWEVENT_CLOSE) {
|
||||
return false;
|
||||
} else if ((e->window.event==SDL_WINDOWEVENT_SHOWN) || (e->window.event==SDL_WINDOWEVENT_EXPOSED)) {
|
||||
redraw();
|
||||
}
|
||||
}
|
||||
if (!z80debug::debugging()) {
|
||||
if (z80debug::paused()) {
|
||||
@@ -270,6 +274,14 @@ namespace zxscreen
|
||||
SDL_RenderPresent(ren);
|
||||
}
|
||||
|
||||
void setTitle(const char* title)
|
||||
{
|
||||
char tmp[256];
|
||||
strcpy(tmp, "ZX Spectrum Screen");
|
||||
strcat(tmp, title);
|
||||
SDL_SetWindowTitle(win, tmp);
|
||||
}
|
||||
|
||||
void setZoom(const int value)
|
||||
{
|
||||
if (value < 1) return;
|
||||
|
||||
Reference in New Issue
Block a user