diff --git a/src/kits/interface/Alert.cpp b/src/kits/interface/Alert.cpp index 83f86db777..02e8535d21 100644 --- a/src/kits/interface/Alert.cpp +++ b/src/kits/interface/Alert.cpp @@ -38,7 +38,7 @@ #include // TODO: Fix // This is hacked in because something in Accelerant.h or SupportDefs.h is lame! -typedef unsigned int uint; +//typedef unsigned int uint; #include #include #include @@ -47,6 +47,7 @@ typedef unsigned int uint; #include #include #include +#include #include @@ -255,7 +256,8 @@ char BAlert::Shortcut(int32 index) const //------------------------------------------------------------------------------ int32 BAlert::Go() { - // TODO: Add sound? + system_beep(NULL); // forces the "beep" event + fAlertSem = create_sem(0, "AlertSem"); if (fAlertSem < B_OK) { @@ -424,9 +426,9 @@ BPoint BAlert::AlertPosition(float width, float height) BScreen Screen(Window); if (!Screen.IsValid()) { - // ... then we're in deep trouble - // But what to say about it? - // debugger(???); + // We should never be here because a BScreen object will return + // a valid screen. + debugger("Couldn't find the screen!"); } BRect screenRect = Screen.Frame();