Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ncar!cruff From: cruff@ncar.ucar.edu (Craig Ruff) Newsgroups: comp.sys.mac.programmer Subject: Bug in SysBeep? Message-ID: <664@ncar.ucar.edu> Date: 4 Sep 88 18:09:15 GMT Reply-To: cruff@ncar.UCAR.EDU (Craig Ruff) Organization: Scientific Computing Division/NCAR, Boulder CO Lines: 32 I think I have found a bug in SysBeep. Setup: Mac+ System 4.2 Volume = 0 (off) After a call to SysBeep, thePort->txFont field is set back to 0! The following code illustrates this: EraseRect(&thePort->portRect); MoveTo(30, 40); TextFont(4); TextSize(9); DrawText("Before", 0, 6); SysBeep(3); MoveTo(30, 60); DrawText("After", 0, 5); The "Before" string is drawn in Monaco font. The "After" string is drawn in System font (Chicago). Tracking down the bug with a debugger, thePort->txFont is changed sometime during the trap to SysBeep. Note that this bug does not occur if the volume > 0; -- Craig Ruff NCAR INTERNET: cruff@ncar.UCAR.EDU (303) 497-1211 P.O. Box 3000 CSNET: cruff@ncar.CSNET Boulder, CO 80307 UUCP: cruff@ncar.UUCP -- Craig Ruff NCAR INTERNET: cruff@ncar.UCAR.EDU (303) 497-1211 P.O. Box 3000 CSNET: cruff@ncar.CSNET Boulder, CO 80307 UUCP: cruff@ncar.UUCP