Pasaeta de include-what-you-use abans que es desmadre tot
This commit is contained in:
@@ -1,17 +1,16 @@
|
||||
#include "options.h"
|
||||
#include <SDL2/SDL_gamecontroller.h> // for SDL_GameControllerButton, SDL_C...
|
||||
#include <SDL2/SDL_video.h> // for SDL_WINDOW_FULLSCREEN, SDL_WIND...
|
||||
#include <algorithm> // for max, min
|
||||
#include <fstream> // for char_traits, basic_ostream, ope...
|
||||
#include <fstream> // for basic_ostream, operator<<, basi...
|
||||
#include <iostream> // for cout
|
||||
#include <vector> // for vector
|
||||
#include "input.h" // for inputs_e, INPUT_USE_ANY, INPUT_...
|
||||
#include "lang.h" // for lang_e
|
||||
#include "screen.h" // for screenFilter::NEAREST, SCREEN_V...
|
||||
#include "screen.h" // for screenVideoMode, screenFilter
|
||||
#include "utils.h" // for op_controller_t, options_t, op_...
|
||||
|
||||
// Variables
|
||||
options_t options;
|
||||
// Variables
|
||||
options_t options;
|
||||
|
||||
// Declaraciones
|
||||
bool setOptions(std::string var, std::string value);
|
||||
@@ -286,7 +285,7 @@ bool setOptions(std::string var, std::string value)
|
||||
// Opciones de video
|
||||
if (var == "video.mode")
|
||||
{
|
||||
//options.video.mode = value == std::to_string(static_cast<int>(screenVideoMode::WINDOW)) ? screenVideoMode::WINDOW : screenVideoMode::FULLSCREEN;
|
||||
// options.video.mode = value == std::to_string(static_cast<int>(screenVideoMode::WINDOW)) ? screenVideoMode::WINDOW : screenVideoMode::FULLSCREEN;
|
||||
options.video.mode = static_cast<screenVideoMode>(std::stoi(value));
|
||||
}
|
||||
|
||||
@@ -301,7 +300,7 @@ bool setOptions(std::string var, std::string value)
|
||||
|
||||
else if (var == "video.filter")
|
||||
{
|
||||
//options.video.filter = value == std::to_string(static_cast<int>(screenFilter::NEAREST)) ? screenFilter::NEAREST : screenFilter::LINEAL;
|
||||
// options.video.filter = value == std::to_string(static_cast<int>(screenFilter::NEAREST)) ? screenFilter::NEAREST : screenFilter::LINEAL;
|
||||
options.video.filter = static_cast<screenFilter>(std::stoi(value));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user