Demo: implementado el cambio de tamaño de la ventana

This commit is contained in:
2023-05-07 14:22:14 +02:00
parent 9b9fd15f4e
commit 90ebea4807
5 changed files with 82 additions and 66 deletions

View File

@@ -559,25 +559,24 @@ bool colorAreEqual(color_t color1, color_t color2)
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->screen.mode = 0;
options->screen.windowZoom = 1;
options->screen.filter = 0;
options->screen.vsync = true;
options->screen.nativeWidth = 320;
options->screen.nativeHeight = 240;
options->screen.nativeZoom = 1;
options->screen.integerScale = true;
options->screen.keepAspect = true;
options->screen.borderEnabled = false;
options->screen.borderWidth = 0;
options->screen.borderHeight = 0;
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;
}