- [NEW] Zoom per a la pantalla retina
- Treballant en la càrrega instantànea de TAPs
This commit is contained in:
@@ -104,6 +104,7 @@ namespace z80debug
|
||||
if ((e->window.event==SDL_WINDOWEVENT_SHOWN) || (e->window.event==SDL_WINDOWEVENT_EXPOSED)) {
|
||||
int w; int h;
|
||||
SDL_GetWindowSize(win, &w, &h);
|
||||
w/=2; h/=2;
|
||||
midx = (w/CHR_W) - 25;
|
||||
win_h = (h/CHR_H);
|
||||
mem_y = win_h - mem_h - con_h;
|
||||
@@ -332,8 +333,9 @@ namespace z80debug
|
||||
void show()
|
||||
{
|
||||
if (!win) {
|
||||
win = SDL_CreateWindow("Z80 Debugger", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 98*CHR_W, 44*CHR_H, SDL_WINDOW_RESIZABLE);
|
||||
win = SDL_CreateWindow("Z80 Debugger", 10, 50, 98*CHR_W*2, 44*CHR_H*2, SDL_WINDOW_SHOWN);
|
||||
ren = SDL_CreateRenderer(win, -1, 0);
|
||||
SDL_RenderSetLogicalSize(ren, 98*CHR_W, 44*CHR_H);
|
||||
ui::window::registerWindow(SDL_GetWindowID(win), eventHandler);
|
||||
tex = ui::createtexture(ren);
|
||||
}
|
||||
@@ -382,7 +384,7 @@ namespace z80debug
|
||||
void cont() {
|
||||
zxscreen::setTitle("");
|
||||
is_debugging = is_paused = false;
|
||||
//hide();
|
||||
hide();
|
||||
refresh();
|
||||
zxscreen::focus();
|
||||
speaker::enable();
|
||||
|
||||
Reference in New Issue
Block a user