Skip to content

Commit 1efc02d

Browse files
committed
sdl: video: Fix ShowMessageBox()
1 parent 83c1fd6 commit 1efc02d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdl/video.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -725,8 +725,8 @@ func ShowMessageBox(data *MessageBoxData) (buttonid int32, err error) {
725725
colorScheme: data.ColorScheme.cptr(),
726726
}
727727

728-
buttonid = C.ShowMessageBox(cdata)
729-
return int32(buttonid), errorFromInt(int(buttonid))
728+
buttonid = int32(C.ShowMessageBox(cdata))
729+
return buttonid, errorFromInt(int(buttonid))
730730
}
731731

732732
// IsScreenSaverEnabled reports whether the screensaver is currently enabled.

0 commit comments

Comments
 (0)