Skip to content

Commit 68609a9

Browse files
authored
Fix inverted clipboard error check in SDL3 (space-wizards#6348)
1 parent 76727ce commit 68609a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Robust.Client/Graphics/Clyde/Windowing/Sdl3.Window.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ public void ClipboardSetText(WindowReg mainWindow, string text)
606606
private void WinThreadSetClipboard(CmdSetClipboard cmd)
607607
{
608608
var res = SDL.SDL_SetClipboardText(cmd.Text);
609-
if (res)
609+
if (!res)
610610
_sawmill.Error("Failed to set clipboard text: {error}", SDL.SDL_GetError());
611611
}
612612

0 commit comments

Comments
 (0)