home *** CD-ROM | disk | FTP | other *** search
-
- Hi,
-
- I could not find the e-mail address of the author in the xjewel distribution,
- so I am posting the fix here, hoping that the author will get it...
-
- The problem is that xjewel does not reset the bell duration after the
- game is over.
-
- christos
-
- Here's the fix:
-
- *** /tmp/T0a16240 Tue Mar 2 14:59:23 1993
- --- jewel.c Tue Mar 2 14:56:42 1993
- ***************
- *** 524,530 ****
- int argc;
- char **argv;
- {
- ! XKeyboardControl Values;
- struct timeval curtime;
-
- gettimeofday(&curtime,NULL);
- --- 524,530 ----
- int argc;
- char **argv;
- {
- ! XKeyboardControl Values, savedValues;
- struct timeval curtime;
-
- gettimeofday(&curtime,NULL);
- ***************
- *** 536,541 ****
- --- 536,542 ----
-
- Init_Jewel();
-
- + XGetKeyboardControl(xw_display,&savedValues);
- Values.bell_duration=50;
- XChangeKeyboardControl(xw_display,KBBellDuration, &Values);
- xw_start();
- ***************
- *** 544,549 ****
- --- 545,551 ----
- Init_Help();
-
- xw_main_loop();
- + XChangeKeyboardControl(xw_display,KBBellDuration, &savedValues);
- XCloseDisplay(xw_display);
- exit(0);
- }
-