Skip to content

Commit

Permalink
More fixes for MacOS and Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Slushi-Github committed Dec 31, 2024
1 parent 37ae543 commit 3b45a82
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ class GameplayCrashHandler

WindowFuncs.winTitle("Slushi Engine: Crash Handler Mode");
WindowFuncs.resetWindowParameters();
#if windows
WindowsFuncs.setWindowBorderColor([0, 46, 114]);
#end
if (Main.fpsVar != null)
Main.fpsVar.visible = false;
FlxG.mouse.useSystemCursor = false;
Expand Down
6 changes: 4 additions & 2 deletions funkinscsource/slushi/windows/winGDIThings/WinGDIThread.hx
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ class WinGDIThread

public static function initThread()
{
#if windows
if (mainThread != null)
return;

Debug.logSLEInfo('Starting Windows GDI Thread...');

mainThread = Thread.create(() ->
{
#if windows
Debug.logSLEInfo('Windows GDI Thread running...');
while (runningThread)
{
Expand Down Expand Up @@ -69,12 +69,13 @@ class WinGDIThread
gdi.gdiEffect.update();
}
}
#end
});
#end
}

public static function stopThread()
{
#if windows
if (mainThread != null)
{
Debug.logSLEInfo('Stopping Windows GDI Thread...');
Expand All @@ -86,4 +87,5 @@ class WinGDIThread
elapsedTime = 0;
SlushiWinGDI.setElapsedTime(elapsedTime);
}
#end
}

0 comments on commit 3b45a82

Please sign in to comment.