Esempio n. 1
0
        private void LoadSettings()
        {
            fullScreen            = Program.Settings.Video_StartFullscreen;
            fullscreen_mode_index = Program.Settings.Video_FullscreenRes;
            show_notification     = Program.Settings.Video_ShowNotifications;
            show_fps  = Program.Settings.Video_ShowFPS;
            cut_lines = Program.Settings.Video_CutLines;
            hardware_vertex_processing = Program.Settings.Video_HardwareVertexProcessing;
            keep_aspect_ratio          = Program.Settings.Video_KeepAspectRatio;
            filter = Program.Settings.Video_Filter;

            if (show_fps)
            {
                if (fps_cal_timer == null)
                {
                    fps_cal_timer = new System.Threading.Timer(OnFPSTimerCallback, NesEmu.FPSDone, 0, 1000);
                }
            }
            else
            {
                if (fps_cal_timer != null)
                {
                    fps_cal_timer.Dispose();
                    fps_cal_timer = null;
                    GC.Collect();
                }
            }
        }
Esempio n. 2
0
 private void LoadSettings()
 {
     fullScreen            = Program.Settings.Video_StartFullscreen;
     fullscreen_mode_index = Program.Settings.Video_FullscreenRes;
     show_notification     = Program.Settings.Video_ShowNotifications;
     show_fps  = Program.Settings.Video_ShowFPS;
     cut_lines = Program.Settings.Video_CutLines;
     hardware_vertex_processing = Program.Settings.Video_HardwareVertexProcessing;
     keep_aspect_ratio          = Program.Settings.Video_KeepAspectRatio;
     filter = Program.Settings.Video_Filter;
 }
Esempio n. 3
0
        private void LoadSettings()
        {
            fullScreen = Program.Settings.Video_StartFullscreen;
            fullscreen_mode_index = Program.Settings.Video_FullscreenRes;
            show_notification = Program.Settings.Video_ShowNotifications;
            show_fps = Program.Settings.Video_ShowFPS;
            cut_lines = Program.Settings.Video_CutLines;
            hardware_vertex_processing = Program.Settings.Video_HardwareVertexProcessing;
            keep_aspect_ratio = Program.Settings.Video_KeepAspectRatio;
            filter = Program.Settings.Video_Filter;

            if (show_fps)
            {
                if (fps_cal_timer == null)
                    fps_cal_timer = new System.Threading.Timer(OnFPSTimerCallback, NesEmu.FPSDone, 0, 1000);
            }
            else
            {
                if (fps_cal_timer != null)
                {
                    fps_cal_timer.Dispose();
                    fps_cal_timer = null;
                    GC.Collect();
                }
            }
        }