remember window size variables between sessions

This commit is contained in:
zeromus 2008-05-16 16:20:48 +00:00
parent f38dcdec9b
commit f747048689
3 changed files with 13 additions and 12 deletions

View File

@ -160,12 +160,12 @@ int KeyboardInitialize(void)
////--set to buffered mode
//DIPROPDWORD dipdw;
//dipdw.diph.dwSize = sizeof(DIPROPDWORD);
//dipdw.diph.dwHeaderSize = sizeof(DIPROPHEADER);
//dipdw.diph.dwObj = 0;
//dipdw.diph.dwHow = DIPH_DEVICE;
//dipdw.dwData = 64;
//dipdw.diph.dwSize = sizeof(DIPROPDWORD);
//dipdw.diph.dwHeaderSize = sizeof(DIPROPHEADER);
//dipdw.diph.dwObj = 0;
//dipdw.diph.dwHow = DIPH_DEVICE;
//dipdw.dwData = 64;
//ddrval = IDirectInputDevice7_SetProperty(lpdid,DIPROP_BUFFERSIZE, &dipdw.diph);
////--------

View File

@ -101,11 +101,12 @@ int soundrate = 44100;
int soundbuftime = 50;
int soundvolume = 100;
int soundquality = 0;
double saspectw = 1, saspecth = 1;
double winsizemulx = 1, winsizemuly = 1;
/**
* Contains the names of the overridden standard directories
* in the order cheats, misc, nonvol, states, snaps, memwatch, basicbot, macro, fds,..., base
**/
// Contains the names of the overridden standard directories
// in the order cheats, misc, nonvol, states, snaps, memwatch, basicbot, macro, fds,..., base
char *directory_names[10] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
/**

View File

@ -49,8 +49,8 @@ static const char *default_directory_names[9] = {"cheats", "movie", "sav", "fcs"
#define NUMBER_OF_DIRECTORIES sizeof(directory_names) / sizeof(*directory_names)
#define NUMBER_OF_DEFAULT_DIRECTORIES sizeof(default_directory_names) / sizeof(*default_directory_names)
static double saspectw = 1, saspecth = 1;
static double winsizemulx = 1, winsizemuly = 1;
extern double saspectw, saspecth;
extern double winsizemulx, winsizemuly;
static int winwidth, winheight;
static int ismaximized = 0;