Corregit un fallo amagat baix un ifdef ARCADE. Ja he posat que estiga definit per defecte pa que no torne a passar
This commit is contained in:
@@ -39,7 +39,7 @@ namespace globalInputs
|
||||
else
|
||||
{
|
||||
#ifdef ARCADE
|
||||
const int index = code == section::Options::QUIT_NORMAL ? 94 : 116;
|
||||
const int index = code == section::Options::QUIT_WITH_CONTROLLER ? 116 : 94;
|
||||
Notifier::get()->showText(lang::getText(index), std::string(), -1, exit_code);
|
||||
#else
|
||||
Notifier::get()->showText(lang::getText(94), std::string(), -1, exit_code);
|
||||
|
||||
@@ -38,9 +38,14 @@ Texture::Texture(SDL_Renderer *renderer, const std::string &path)
|
||||
// .gif
|
||||
else if (extension == "gif")
|
||||
{
|
||||
// Crea la surface desde un fichero
|
||||
surface_ = loadSurface(path_);
|
||||
addPaletteFromFile(path_);
|
||||
setPaletteColor(0, 0, 0x00000000);
|
||||
|
||||
// Añade la propia paleta del fichero a la lista
|
||||
addPaletteFromFile(path_);
|
||||
//setPaletteColor(0, 0, 0x00000000);
|
||||
|
||||
// Crea la textura, establece el BlendMode y copia la surface a la textura
|
||||
createBlank(width_, height_, SDL_PIXELFORMAT_RGBA8888, SDL_TEXTUREACCESS_STREAMING);
|
||||
SDL_SetTextureBlendMode(texture_, SDL_BLENDMODE_BLEND);
|
||||
flipSurface();
|
||||
|
||||
Reference in New Issue
Block a user