public void Resize(object sender, VideoResizeEventArgs args)
 {
     Width = args.Width;
     Height = args.Height;
     PlaceItem();
     Screen = Video.SetVideoMode(args.Width, args.Height, true);
 }
Beispiel #2
0
 private void Resize(object sender, VideoResizeEventArgs e)
 {
     screen = Video.SetVideoMode(e.Width, e.Height, true, true);
 }
Beispiel #3
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="args"></param>
 public override void Update(VideoResizeEventArgs args)
 {
     if (args == null)
     {
         throw new ArgumentNullException("args");
     }
     this.bounds = new Rectangle(0, 0, args.Width, args.Height);
 }
Beispiel #4
0
 static void OnVideoResize(VideoResizeEventArgs e)
 {
     if (VideoResize != null)
     {
         VideoResize(instance, e);
     }
 }
Beispiel #5
0
 void Events_VideoResize(object sender, VideoResizeEventArgs e)
 {
     screen = Video.SetVideoMode(e.Width, e.Height, true, true);
     Init();
     Reshape();
 }
Beispiel #6
0
 void OnVideoResize(object sender, VideoResizeEventArgs e)
 {
     isResized = e.Height != size.Height || e.Width != size.Width;
     if (isResized)
     {
         screen = Video.SetVideoMode(e.Width, e.Height, true, true);
         if (Resized != null) { Resized(this, new SizeEventArgs(e.Width, e.Height)); }
     }
 }
Beispiel #7
0
 private void Resize(object sender, VideoResizeEventArgs e)
 {
     screen = Video.SetVideoMode(e.Width, e.Height, true);
     this.width = e.Width;
     this.height = e.Height;
 }
Beispiel #8
0
        /// <summary>
        /// Handle resizes
        /// </summary>
        /// <param name="sender">
        /// A <see cref="System.Object"/>
        /// </param>
        /// <param name="args">
        /// A <see cref="VideoResizeEventArgs"/>
        /// </param>
        public void OnResize(object sender, VideoResizeEventArgs args)
        {
            width = args.Width;
            height = args.Height;

            PrepareViewport();
            Gl.glViewport(0, 0, width, height);
            //screen = Video.SetVideoMode(width, height, 32, true, true, false);
            screen = Video.SetVideoMode(width, height, 32, true, true, false, true, true);
        }
Beispiel #9
0
 private void VideoResize(object sender, VideoResizeEventArgs e)
 {
     this.Resize(this.FullScreen, true, e.Width, e.Height);
 }