Skip to content

Commit

Permalink
Fix crash when editing character (fixes #184)
Browse files Browse the repository at this point in the history
Change config default to scale 2x, hqx
Fix not loading new config
  • Loading branch information
cxong committed Nov 18, 2013
1 parent baa181a commit fdd4ee0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/cdogs/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ void ConfigLoad(Config *config, const char *filename)
case 1:
case 2:
case 3:
case 4:
ConfigLoadJSON(config, filename);
break;
default:
Expand Down Expand Up @@ -292,9 +293,9 @@ void ConfigLoadDefault(Config *config)
config->Graphics.Fullscreen = 0;
config->Graphics.ResolutionHeight = 240;
config->Graphics.ResolutionWidth = 320;
config->Graphics.ScaleFactor = 1;
config->Graphics.ScaleFactor = 2;
config->Graphics.ShakeMultiplier = 1;
config->Graphics.ScaleMode = SCALE_MODE_NN;
config->Graphics.ScaleMode = SCALE_MODE_HQX;
config->Input.PlayerKeys[0].Keys.left = SDLK_LEFT;
config->Input.PlayerKeys[0].Keys.right = SDLK_RIGHT;
config->Input.PlayerKeys[0].Keys.up = SDLK_UP;
Expand Down
2 changes: 1 addition & 1 deletion src/player_select_menus.c
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ void PlayerSelectMenusCreate(
{
MenuSystem *ms = &menu->ms;
PlayerSelectMenuData *data = &menu->data;
struct PlayerData *p = data->display.pData;
struct PlayerData *p = pData;
Vec2i pos = Vec2iZero();
Vec2i size = Vec2iZero();
int w = graphics->cachedConfig.ResolutionWidth;
Expand Down

0 comments on commit fdd4ee0

Please sign in to comment.