Demo: añadida la clase screen
This commit is contained in:
@@ -553,4 +553,31 @@ bool colorAreEqual(color_t color1, color_t color2)
|
||||
const bool b = color1.b == color2.b;
|
||||
|
||||
return (r && g && b);
|
||||
}
|
||||
|
||||
// Inicializa la estructura de opciones
|
||||
void initOptions(options_t *options)
|
||||
{
|
||||
options->configVersion = "";
|
||||
options->videoMode = 0;
|
||||
options->windowSize = 1;
|
||||
options->filter = 0;
|
||||
options->vSync = true;
|
||||
options->gameWidth = 320;
|
||||
options->gameHeight = 240;
|
||||
options->integerScale = true;
|
||||
options->keepAspect = true;
|
||||
options->borderEnabled = false;
|
||||
options->borderWidth = 0;
|
||||
options->borderHeight = 0;
|
||||
options->palette = p_zxspectrum;
|
||||
options->console = false;
|
||||
|
||||
options->notifications.posV = pos_top;
|
||||
options->notifications.posH = pos_left;
|
||||
options->notifications.sound = true;
|
||||
options->notifications.color = {48, 48, 48};
|
||||
|
||||
options->screen.windowWidth = options->gameWidth * options->windowSize;
|
||||
options->screen.windowHeight = options->gameHeight * options->windowSize;
|
||||
}
|
||||
Reference in New Issue
Block a user