Skip to content

Commit

Permalink
Fix game scaling issue (#910)
Browse files Browse the repository at this point in the history
  • Loading branch information
royfalk authored Nov 24, 2024
1 parent 47eefd0 commit f89b525
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions engine/objconv/basemaker/base_maker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2166,8 +2166,8 @@ int main(int argc, char **argv) {
Base::CurrentBase = NULL;
glutInit(&argc, argv);
glutInitWindowSize(800, 600);
g_game.x_resolution = 800;
g_game.y_resolution = 600;
g_game.x_resolution = 1920;
g_game.y_resolution = 1080;
glutInitWindowPosition(0, 0);
glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE);
glutCreateWindow("Vega Strike Base Maker");
Expand Down
4 changes: 2 additions & 2 deletions engine/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ void setup_game_data() {
g_game.music_volume = 1;
g_game.warning_level = 20;
g_game.capture_mouse = GFXFALSE;
g_game.y_resolution = 768;
g_game.x_resolution = 1024;
g_game.y_resolution = 1080;
g_game.x_resolution = 1920;
g_game.fov = 78;
g_game.MouseSensitivityX = 2;
g_game.MouseSensitivityY = 4;
Expand Down
5 changes: 3 additions & 2 deletions engine/src/options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

#include "options.h"
#include "configxml.h"
#include "configuration/configuration.h"

extern VegaConfig *vs_config;

Expand Down Expand Up @@ -189,8 +190,8 @@ void vs_options::init() {
rgb_pixel_format = vs_config->getVariable("graphics", "rgb_pixel_format", "undefined");
gl_accelerated_visual = XMLSupport::parse_bool(vs_config->getVariable("graphics", "gl_accelerated_visual", "true"));
z_pixel_format = XMLSupport::parse_int(vs_config->getVariable("graphics", "z_pixel_format", "24"));
x_resolution = XMLSupport::parse_int(vs_config->getVariable("graphics", "x_resolution", "1024"));
y_resolution = XMLSupport::parse_int(vs_config->getVariable("graphics", "y_resolution", "768"));
x_resolution = configuration()->graphics2_config.resolution_x;
y_resolution = configuration()->graphics2_config.resolution_y;
fullscreen = XMLSupport::parse_bool(vs_config->getVariable("graphics", "fullscreen", "false"));
colordepth = XMLSupport::parse_int(vs_config->getVariable("graphics", "colordepth", "32"));
glut_stencil = XMLSupport::parse_bool(vs_config->getVariable("graphics", "glut_stencil", "true"));
Expand Down

0 comments on commit f89b525

Please sign in to comment.