From a07eeff6e4498afd23c236839356367901e1e1db Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Sun, 17 Sep 2023 17:09:43 +0200 Subject: [PATCH] Fix: la variable showCheevos no se inicializaba correctamente --- source/director.cpp | 15 +++++++-------- source/title.cpp | 1 + 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/source/director.cpp b/source/director.cpp index 4944703..f49fd1c 100644 --- a/source/director.cpp +++ b/source/director.cpp @@ -1222,7 +1222,6 @@ void Director::initInput() input->bindKey(input_right, SDL_SCANCODE_RIGHT); input->bindKey(input_up, SDL_SCANCODE_UP); input->bindKey(input_down, SDL_SCANCODE_DOWN); - } else if (options->keys == ctrl_opqa) { @@ -1329,14 +1328,14 @@ bool Director::initSDL() else { // Crea un renderizador para la ventana. El vsync se activa en funcion de las opciones + //Uint32 flags = SDL_RENDERER_SOFTWARE; + //Uint32 flags = SDL_RENDERER_ACCELERATED; + Uint32 flags = 0; if (options->vSync) - { - renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC); - } - else - { - renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED); - } + { + flags = flags | SDL_RENDERER_PRESENTVSYNC; + } + renderer = SDL_CreateRenderer(window, -1, flags); if (renderer == nullptr) { diff --git a/source/title.cpp b/source/title.cpp index b7c422d..683eb2b 100644 --- a/source/title.cpp +++ b/source/title.cpp @@ -35,6 +35,7 @@ Title::Title(SDL_Renderer *renderer, Screen *screen, Resource *resource, Asset * ticksSpeed = 15; marqueeSpeed = 3; initMarquee(); + showCheevos = false; // Crea el cartel de PRESS ENTER #ifdef GAME_CONSOLE