protected override void OnResize(EventArgs e) { GL.Viewport(0, 0, Width, Height); QFont.ForceViewportRefresh(); Scale.SetHScaling(0, Width); Scale.SetVScaling(0, Height); if (Width <= 1280 && lastWidth != 1280) { lastWidth = 1280; Qfont = Qfont_1280; SVReizeEvent?.Invoke(this, EventArgs.Empty); } else if (Width > 1280 && Width <= 1400 && lastWidth != 1400) { lastWidth = 1400; Qfont = Qfont_1400; SVReizeEvent?.Invoke(this, EventArgs.Empty); } else if (Width > 1400 && lastWidth != 1920) { lastWidth = 1920; Qfont = Qfont_1920; SVReizeEvent?.Invoke(this, EventArgs.Empty); } base.OnResize(e); }
public void RefreshViews() { QFont.ForceViewportRefresh(); }