mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2024-12-05 00:38:00 +01:00
params: Improve comments and member names
This commit is contained in:
parent
6f22f54f5d
commit
ef22a0931f
2 changed files with 5 additions and 5 deletions
|
@ -361,7 +361,7 @@ SYMBOL_EXPORT struct Game* libsuperderpy_init(int argc, char** argv, const char*
|
|||
|
||||
game->_priv.samplerate = game->config.samplerate;
|
||||
if (!game->_priv.samplerate) {
|
||||
game->_priv.samplerate = params.samplerate;
|
||||
game->_priv.samplerate = params.sample_rate;
|
||||
if (!game->_priv.samplerate) {
|
||||
game->_priv.samplerate = 44100;
|
||||
}
|
||||
|
|
|
@ -135,15 +135,15 @@ struct Handlers {
|
|||
struct Params {
|
||||
int width; /*!< Width of the drawing canvas. */
|
||||
int height; /*!< Height of the drawing canvas. */
|
||||
float aspect; /*!< When set instead of width/height pair, makes the viewport side fluid; when non-zero, locks its aspect ratio. */
|
||||
bool integer_scaling; /*!< Ensure that the viewport is zoomed only with integer factors. */
|
||||
float aspect; /*!< When set instead of width&height pair, makes the viewport resizeable with locked aspect ratio. */
|
||||
bool integer_scaling; /*!< Ensure that the viewport is zoomed only by integer factors. */
|
||||
bool depth_buffer; /*!< Request a depth buffer for the framebuffer's render target. */
|
||||
bool show_loading_on_launch; /*!< Whether the loading screen should be shown when loading the initial set of gamestates. */
|
||||
bool fixed_size; /*!< If set to true, the game's window will not be resizable. */
|
||||
int samples; /*!< How many samples should be used for multisampling; 0 to disable. */
|
||||
int samplerate; /*!< Default sample rate of audio output; 0 to use engine default. */
|
||||
int sample_rate; /*!< Default sample rate of audio output; 0 to use engine default. */
|
||||
char* window_title; /*!< A title of the game's window. When NULL, al_get_app_name() is used. */
|
||||
struct Handlers handlers; /*!< A list of user callbacks to register. */
|
||||
bool fixed_size; /*!< If set to true, the game's window with not be resizable. */
|
||||
};
|
||||
|
||||
/*! \brief Main struct of the game. */
|
||||
|
|
Loading…
Reference in a new issue