forked from jaildesigner-jailgames/jaildoctors_dilemma
Transició a surface: vaig per title.cpp
This commit is contained in:
@@ -14,9 +14,9 @@
|
||||
#include "options.h" // for Options, options, OptionsVideo, Sect...
|
||||
#include "resource.h" // for Resource
|
||||
#include "screen.h" // for Screen
|
||||
#include "sprite.h" // for Sprite
|
||||
#include "s_sprite.h" // for Sprite
|
||||
#include "text.h" // for Text, TEXT_STROKE
|
||||
#include "texture.h" // for Texture
|
||||
#include "surface.h" // for Texture
|
||||
#include "utils.h" // for Color, stringToColor, Palette
|
||||
|
||||
// Constructor
|
||||
@@ -240,19 +240,19 @@ void Ending::iniPics()
|
||||
|
||||
if (options.video.palette == Palette::ZXSPECTRUM)
|
||||
{
|
||||
pics.push_back({"ending1.png", 48});
|
||||
pics.push_back({"ending2.png", 26});
|
||||
pics.push_back({"ending3.png", 29});
|
||||
pics.push_back({"ending4.png", 63});
|
||||
pics.push_back({"ending5.png", 53});
|
||||
pics.push_back({"ending1.gif", 48});
|
||||
pics.push_back({"ending2.gif", 26});
|
||||
pics.push_back({"ending3.gif", 29});
|
||||
pics.push_back({"ending4.gif", 63});
|
||||
pics.push_back({"ending5.gif", 53});
|
||||
}
|
||||
else
|
||||
{
|
||||
pics.push_back({"ending1_zxarne.png", 48});
|
||||
pics.push_back({"ending2_zxarne.png", 26});
|
||||
pics.push_back({"ending3_zxarne.png", 29});
|
||||
pics.push_back({"ending4_zxarne.png", 63});
|
||||
pics.push_back({"ending5_zxarne.png", 53});
|
||||
pics.push_back({"ending1_zxarne.gif", 48});
|
||||
pics.push_back({"ending2_zxarne.gif", 26});
|
||||
pics.push_back({"ending3_zxarne.gif", 29});
|
||||
pics.push_back({"ending4_zxarne.gif", 63});
|
||||
pics.push_back({"ending5_zxarne.gif", 53});
|
||||
}
|
||||
|
||||
// Crea los sprites
|
||||
@@ -263,7 +263,7 @@ void Ending::iniPics()
|
||||
EndingTexture sp;
|
||||
|
||||
// Crea la texture
|
||||
sp.image_texture = Resource::get()->getTexture(pic.caption);
|
||||
sp.image_texture = Resource::get()->getSurface(pic.caption);
|
||||
const int WIDTH = sp.image_texture->getWidth();
|
||||
const int HEIGHT = sp.image_texture->getHeight();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user