forked from jaildesigner-jailgames/jaildoctors_dilemma
i per fi ja comença a tornar tot a la normalitat
This commit is contained in:
@@ -29,10 +29,10 @@ Credits::Credits()
|
||||
Screen::get()->setBorderColor(stringToColor("black"));
|
||||
|
||||
// Crea la textura para el texto que se escribe en pantalla
|
||||
text_surface_ = std::make_shared<Surface>(Screen::get()->getRendererSurface(), options.game.width, options.game.height);
|
||||
text_surface_ = std::make_shared<Surface>(options.game.width, options.game.height);
|
||||
|
||||
// Crea la textura para cubrir el rexto
|
||||
cover_surface_ = std::make_shared<Surface>(Screen::get()->getRendererSurface(), options.game.width, options.game.height);
|
||||
cover_surface_ = std::make_shared<Surface>(options.game.width, options.game.height);
|
||||
|
||||
// Escribe el texto en la textura
|
||||
fillTexture();
|
||||
@@ -143,7 +143,7 @@ void Credits::fillTexture()
|
||||
|
||||
// Rellena la textura de texto
|
||||
Screen::get()->setRendererSurface(text_surface_);
|
||||
Screen::get()->clearSurface(stringToColor("black"));
|
||||
text_surface_->clear(stringToColor("black"));
|
||||
|
||||
auto text = Resource::get()->getText("smb2");
|
||||
|
||||
@@ -168,7 +168,7 @@ void Credits::fillTexture()
|
||||
|
||||
// Rellena la textura que cubre el texto con color transparente
|
||||
Screen::get()->setRendererSurface(text_surface_);
|
||||
Screen::get()->clearSurface(stringToColor("transparent"));
|
||||
text_surface_->clear(stringToColor("transparent"));
|
||||
|
||||
// Los primeros 8 pixels crea una malla
|
||||
auto surface = Screen::get()->getRendererSurface();
|
||||
|
||||
Reference in New Issue
Block a user