- Sistema de menus operatiu, falta ficar-los tots
- Afegit .tap del Fernando Martín. Investigar perqué falla.
This commit is contained in:
@@ -175,7 +175,7 @@ namespace zxscreen
|
||||
|
||||
void redraw(const bool present)
|
||||
{
|
||||
if (zx_tape::berserk()) return;
|
||||
if (zx_tape::getplaying() && zx_tape::getberserk()) return;
|
||||
|
||||
Uint32* pixels;
|
||||
int pitch;
|
||||
@@ -192,7 +192,17 @@ namespace zxscreen
|
||||
// Pintem la textura a pantalla
|
||||
SDL_RenderCopy(ren, tex, NULL, &dest_rect);
|
||||
|
||||
if (present) SDL_RenderPresent(ren);
|
||||
if (present)
|
||||
SDL_RenderPresent(ren);
|
||||
else
|
||||
{
|
||||
SDL_SetRenderDrawBlendMode(ren, SDL_BLENDMODE_BLEND);
|
||||
SDL_SetRenderDrawColor(ren, 0, 0, 0, 128);
|
||||
SDL_Rect rect {0,0,352*zoom,296*zoom};
|
||||
if (fullscreen) SDL_GetWindowSize(win, &rect.w, &rect.h);
|
||||
SDL_RenderFillRect(ren, &rect);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void present()
|
||||
@@ -229,6 +239,11 @@ namespace zxscreen
|
||||
reinit();
|
||||
}
|
||||
|
||||
const bool getFullscreen()
|
||||
{
|
||||
return fullscreen;
|
||||
}
|
||||
|
||||
SDL_Renderer *getrenderer()
|
||||
{
|
||||
return ren;
|
||||
|
||||
Reference in New Issue
Block a user