Example #1
0
// Toggles fullscreen mode
func WM_ToggleFullScreen(surface *Surface) int {
	GlobalMutex.Lock()
	status := int(C.SDL_WM_ToggleFullScreen(surface.cSurface))
	GlobalMutex.Unlock()
	return status
}
Example #2
0
// Toggles fullscreen mode
func WM_ToggleFullScreen(surface *Surface) int {
	return int(C.SDL_WM_ToggleFullScreen((*C.SDL_Surface)(cast(surface))))
}