style: aplicar readability-uppercase-literal-suffix
- Cambiar todos los literales float de minúscula a mayúscula (1.0f → 1.0F)
- 657 correcciones aplicadas automáticamente con clang-tidy
- Check 1/N completado
🤖 Generated with Claude Code
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
SDLManager::SDLManager()
|
||||
: finestra_(nullptr),
|
||||
renderer_(nullptr),
|
||||
fps_accumulator_(0.0f),
|
||||
fps_accumulator_(0.0F),
|
||||
fps_frame_count_(0),
|
||||
fps_display_(0),
|
||||
current_width_(Defaults::Window::WIDTH),
|
||||
@@ -28,7 +28,7 @@ SDLManager::SDLManager()
|
||||
zoom_factor_(Defaults::Window::BASE_ZOOM),
|
||||
windowed_width_(Defaults::Window::WIDTH),
|
||||
windowed_height_(Defaults::Window::HEIGHT),
|
||||
max_zoom_(1.0f) {
|
||||
max_zoom_(1.0F) {
|
||||
// Inicialitzar SDL3
|
||||
if (!SDL_Init(SDL_INIT_VIDEO)) {
|
||||
std::cerr << "Error inicialitzant SDL3: " << SDL_GetError() << std::endl;
|
||||
@@ -81,7 +81,7 @@ SDLManager::SDLManager()
|
||||
SDLManager::SDLManager(int width, int height, bool fullscreen)
|
||||
: finestra_(nullptr),
|
||||
renderer_(nullptr),
|
||||
fps_accumulator_(0.0f),
|
||||
fps_accumulator_(0.0F),
|
||||
fps_frame_count_(0),
|
||||
fps_display_(0),
|
||||
current_width_(width),
|
||||
@@ -92,7 +92,7 @@ SDLManager::SDLManager(int width, int height, bool fullscreen)
|
||||
zoom_factor_(static_cast<float>(width) / Defaults::Window::WIDTH),
|
||||
windowed_width_(width),
|
||||
windowed_height_(height),
|
||||
max_zoom_(1.0f) {
|
||||
max_zoom_(1.0F) {
|
||||
// Inicialitzar SDL3
|
||||
if (!SDL_Init(SDL_INIT_VIDEO)) {
|
||||
std::cerr << "Error inicialitzant SDL3: " << SDL_GetError() << std::endl;
|
||||
@@ -221,7 +221,7 @@ void SDLManager::applyZoom(float new_zoom) {
|
||||
new_zoom = std::round(new_zoom / Defaults::Window::ZOOM_INCREMENT) * Defaults::Window::ZOOM_INCREMENT;
|
||||
|
||||
// No change?
|
||||
if (std::abs(new_zoom - zoom_factor_) < 0.01f) {
|
||||
if (std::abs(new_zoom - zoom_factor_) < 0.01F) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -430,10 +430,10 @@ void SDLManager::updateFPS(float delta_time) {
|
||||
fps_frame_count_++;
|
||||
|
||||
// Actualitzar display cada 0.5 segons
|
||||
if (fps_accumulator_ >= 0.5f) {
|
||||
if (fps_accumulator_ >= 0.5F) {
|
||||
fps_display_ = static_cast<int>(fps_frame_count_ / fps_accumulator_);
|
||||
fps_frame_count_ = 0;
|
||||
fps_accumulator_ = 0.0f;
|
||||
fps_accumulator_ = 0.0F;
|
||||
|
||||
// Actualitzar títol de la finestra
|
||||
std::string vsync_state = (Options::rendering.vsync == 1) ? "ON" : "OFF";
|
||||
@@ -468,7 +468,7 @@ void SDLManager::toggleVSync() {
|
||||
}
|
||||
|
||||
// Reset FPS counter para evitar valores mixtos entre regímenes
|
||||
fps_accumulator_ = 0.0f;
|
||||
fps_accumulator_ = 0.0F;
|
||||
fps_frame_count_ = 0;
|
||||
|
||||
// Guardar configuració
|
||||
|
||||
Reference in New Issue
Block a user