clang-tidy (amb el fuck de que no feien bona parella el clang de macos i el tidy de llvm)
This commit is contained in:
@@ -38,8 +38,8 @@ Screen::Screen()
|
||||
game_canvas_(nullptr),
|
||||
service_menu_(nullptr),
|
||||
notifier_(nullptr),
|
||||
src_rect_(SDL_FRect{0, 0, param.game.width, param.game.height}),
|
||||
dst_rect_(SDL_FRect{0, 0, param.game.width, param.game.height}) {
|
||||
src_rect_(SDL_FRect{.x = 0, .y = 0, .w = param.game.width, .h = param.game.height}),
|
||||
dst_rect_(SDL_FRect{.x = 0, .y = 0, .w = param.game.width, .h = param.game.height}) {
|
||||
// Arranca SDL VIDEO, crea la ventana y el renderizador
|
||||
initSDLVideo();
|
||||
|
||||
@@ -215,7 +215,7 @@ void Screen::renderShake() {
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
// Muestra información por pantalla
|
||||
void Screen::renderInfo() {
|
||||
void Screen::renderInfo() const {
|
||||
if (debug_info_.show) {
|
||||
// Resolution
|
||||
debug_info_.text->writeDX(Text::COLOR | Text::STROKE, param.game.width - debug_info_.text->length(Options::video.info) - 2, 1, Options::video.info, 1, param.debug.color, 1, param.debug.color.DARKEN(150));
|
||||
@@ -505,6 +505,6 @@ void Screen::applySettings() {
|
||||
|
||||
// Crea el objeto de texto
|
||||
void Screen::createText() {
|
||||
auto texture = std::make_shared<Texture>(getRenderer(), Asset::get()->get("aseprite.png"));
|
||||
text_ = std::make_shared<Text>(texture, Asset::get()->get("aseprite.txt"));
|
||||
auto texture = std::make_shared<Texture>(getRenderer(), Asset::get()->getPath("aseprite.png"));
|
||||
text_ = std::make_shared<Text>(texture, Asset::get()->getPath("aseprite.txt"));
|
||||
}
|
||||
Reference in New Issue
Block a user