llevats colorins del debug

This commit is contained in:
2026-03-26 08:49:49 +01:00
parent 7aff3e2109
commit 92453a6104

View File

@@ -396,28 +396,23 @@ void Screen::renderInfo() const {
return;
}
const auto white = static_cast<Uint8>(PaletteColor::WHITE);
//const auto black = static_cast<Uint8>(PaletteColor::BLACK);
const int LINE_HEIGHT = text_->getCharacterSize() - 3;
const int X = 0;
int y = 0;
// FPS
const std::string FPS_TEXT = std::to_string(fps_.last_value) + " fps";
//text_->writeColored(X + 1, y + 1, FPS_TEXT, black);
text_->writeColored(X, y, FPS_TEXT, white);
text_->write(X, y, FPS_TEXT);
y += LINE_HEIGHT;
// Zoom de la ventana
const std::string ZOOM_TEXT = "zoom x" + std::to_string(Options::window.zoom);
//text_->writeColored(X + 1, y + 1, ZOOM_TEXT, black);
text_->writeColored(X, y, ZOOM_TEXT, white);
text_->write(X, y, ZOOM_TEXT);
y += LINE_HEIGHT;
// PostFX enabled
const std::string POSTFX_TEXT = std::string("postfx ") + (Options::video.postfx ? "on" : "off");
//text_->writeColored(X + 1, y + 1, POSTFX_TEXT, black);
text_->writeColored(X, y, POSTFX_TEXT, white);
text_->write(X, y, POSTFX_TEXT);
y += LINE_HEIGHT;
// PostFX preset
@@ -426,14 +421,12 @@ void Screen::renderInfo() const {
preset_name = Options::postfx_presets[static_cast<size_t>(Options::current_postfx_preset)].name;
}
const std::string PRESET_TEXT = "preset " + preset_name;
//text_->writeColored(X + 1, y + 1, PRESET_TEXT, black);
text_->writeColored(X, y, PRESET_TEXT, white);
text_->write(X, y, PRESET_TEXT);
y += LINE_HEIGHT;
// Supersampling enabled
const std::string SS_TEXT = std::string("ss ") + (Options::video.supersampling ? "on" : "off");
//text_->writeColored(X + 1, y + 1, SS_TEXT, black);
text_->writeColored(X, y, SS_TEXT, white);
text_->write(X, y, SS_TEXT);
}
// Limpia la game_surface_