diff --git a/aegisub/src/frame_main.cpp b/aegisub/src/frame_main.cpp index e93d380bc..c1e3b22e2 100644 --- a/aegisub/src/frame_main.cpp +++ b/aegisub/src/frame_main.cpp @@ -84,7 +84,7 @@ #include "charset_conv.h" #include "libresrc/libresrc.h" #ifdef __WXMAC__ -#include +#include #endif @@ -935,10 +935,10 @@ void FrameMain::UpdateTitle() { } else newTitle << _T("untitled"); #endif - + #ifdef __WXMAC__ // On Mac, set the mark in the close button - WindowRef wnd = (WindowRef)MacGetWindowRef(); + WindowRef wnd = (WindowRef)GetHandle(); SetWindowModified(wnd, subsMod); #endif