diff options
author | Kean Johnson <kean@armory.com> | 2005-06-10 06:54:08 +0000 |
---|---|---|
committer | Kean Johnson <kean@armory.com> | 2005-06-10 06:54:08 +0000 |
commit | b2d6fb31352701a4156b8d97334c1c279b37f16e (patch) | |
tree | 5f779b49dde1969585195d275889cf54686ee233 | |
parent | 6a904d00db84e235ea2b0073fbcd078f8a96c9c2 (diff) |
SCO port update for SCO OpenServer 5 and UnixWare 7. A few general cleanupssco_port_update
and bugs not specifically related to the port fixed along the way.
-rw-r--r-- | ico.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -227,6 +227,7 @@ const char *ico_geom = NULL; /* -size: size of object in window */ const char *delta_geom = NULL; /* -delta: amount by which to move object */ Polyinfo *poly; /* -obj: the poly to draw */ int dsync = 0; /* -dsync */ +int xsync = 0; /* -sync */ int msleepcount = 0; /* -sleep value in milliseconds*/ #ifdef MULTITHREAD int thread_count; @@ -1259,7 +1260,7 @@ int main(argc, argv) } else if (!strcmp(*argv, "-dsync")) dsync = 1; else if (!strncmp(*argv, "-sync", 5)) - _Xdebug = 1; + xsync = 1; else if (!strcmp(*argv, "-objhelp")) { giveObjHelp(); exit(1); @@ -1284,6 +1285,8 @@ int main(argc, argv) if (!(dpy = XOpenDisplay(display))) icoFatal("cannot open display \"%s\"", XDisplayName(display)); wm_delete_window = XInternAtom (dpy, "WM_DELETE_WINDOW", False); + if (xsync) + XSynchronize(dpy, True); #ifdef MULTIBUFFER if (multibufext && !XmbufQueryExtension (dpy, &mbevbase, &mberrbase)) { |