Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, 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"
char *usage =
char *usage =
"\nusage: syncterm [options] [URL]"
"-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)
......@@ -1503,8 +1503,8 @@ int main(int argc, char **argv)
if((txtinfo.screenwidth<40) || txtinfo.screenheight<24) {
......@@ -1681,7 +1681,7 @@ int main(int argc, char **argv)
if(WSAInitialized && WSACleanup()!=0)
if(WSAInitialized && WSACleanup()!=0)
fprintf(stderr,"!WSACleanup ERROR %d",ERROR_VALUE);
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