Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit dca11a6f authored by rswindell's avatar rswindell

Fix (or work-around?) ScalingFactor issue reported by ogg in fsxNet->FSX BBS:

The ScalingFactor would always (or usually) reset to 1 and have to be reset
e.g. to 2, by resizing the window manually, every time SyncTERM was run.

I found that by calling textmode() *after* setscaling() rather than before
fixed this issue (at least in SDL mode on Ubuntu Linux). Another "fix" that
worked inserting a small (100ms) delay between the calls to textmode() and
setscaling() - so there appears to have been a race condition and calling
setccaling() too soon after text mode() would fail to change the window
size successfully. Reordering these calls seems to work 100% of the time
without any additional delays. <shrug> Deuce would likely know "why" better
than I.
parent 0032f847
......@@ -54,7 +54,7 @@ char* syncterm_version = "SyncTERM 1.1b"
#endif
;
char *usage =
char *usage =
"\nusage: syncterm [options] [URL]"
"\n\noptions:\n\n"
"-e# = set escape delay to #msec\n"
......@@ -135,7 +135,7 @@ static BOOL winsock_startup(void)
static const struct {
unsigned int width;
unsigned int height;
unsigned int bytes_per_pixel; /* 3:RGB, 4:RGBA */
unsigned int bytes_per_pixel; /* 3:RGB, 4:RGBA */
unsigned char pixel_data[64 * 64 * 4 + 1];
} syncterm_icon = {
64, 64, 4,
......@@ -1199,7 +1199,7 @@ char *get_syncterm_filename(char *fn, int fnlen, int type, int shared)
rmdir(oldlst);
}
}
}
}
}
......@@ -1503,8 +1503,8 @@ int main(int argc, char **argv)
return(1);
ciolib_reaper=FALSE;
seticon(syncterm_icon.pixel_data,syncterm_icon.width);
textmode(text_mode);
setscaling(settings.scaling_factor);
textmode(text_mode);
gettextinfo(&txtinfo);
if((txtinfo.screenwidth<40) || txtinfo.screenheight<24) {
......@@ -1681,7 +1681,7 @@ int main(int argc, char **argv)
}
uifcbail();
#ifdef _WINSOCKAPI_
if(WSAInitialized && WSACleanup()!=0)
if(WSAInitialized && WSACleanup()!=0)
fprintf(stderr,"!WSACleanup ERROR %d",ERROR_VALUE);
#endif
return(0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment