public override void Update(IWindowInfo window) { CarbonWindowInfo carbonWindow1 = (CarbonWindowInfo)window; if (carbonWindow1.GoFullScreenHack) { carbonWindow1.GoFullScreenHack = false; CarbonGLNative carbonWindow2 = this.GetCarbonWindow(carbonWindow1); if (carbonWindow2 == null) { return; } carbonWindow2.SetFullscreen(this); } else { if (carbonWindow1.GoWindowedHack) { carbonWindow1.GoWindowedHack = false; CarbonGLNative carbonWindow2 = this.GetCarbonWindow(carbonWindow1); if (carbonWindow2 != null) { carbonWindow2.UnsetFullscreen(this); } } if (this.mIsFullscreen) { return; } this.SetDrawable(carbonWindow1); this.SetBufferRect(carbonWindow1); int num = (int)Agl.aglUpdateContext(this.Handle.Handle); } }
public override void Update(IWindowInfo window) { CarbonWindowInfo carbonWindow = (CarbonWindowInfo)window; if (carbonWindow.GoFullScreenHack) { carbonWindow.GoFullScreenHack = false; CarbonGLNative wind = GetCarbonWindow(carbonWindow); if (wind != null) { wind.SetFullscreen(this); } else { Debug.Print("Could not find window!"); } return; } else if (carbonWindow.GoWindowedHack) { carbonWindow.GoWindowedHack = false; CarbonGLNative wind = GetCarbonWindow(carbonWindow); if (wind != null) { wind.UnsetFullscreen(this); } else { Debug.Print("Could not find window!"); } } if (mIsFullscreen) { return; } SetDrawable(carbonWindow); SetBufferRect(carbonWindow); Agl.aglUpdateContext(Handle.Handle); }