Exemple #1
0
        public VicIi(TvSystem tvSystem)
        {
            ColorManager.LoadPalette(PaletteDefinition.FromFile(Settings.Default.CurrentColorPalette));

            _tvSystem   = tvSystem;
            _fullHeight = tvSystem == TvSystem.PAL ? FULL_HEIGHT_PAL : FULL_HEIGHT_NTSC;

            var fullHeight = tvSystem == TvSystem.PAL ? FULL_HEIGHT_PAL : FULL_HEIGHT_NTSC;

            FullFrame    = new Rectangle(0, 0, FULL_WIDTH, fullHeight);
            BorderFrame  = new Rectangle(48, 14, 403, USABLE_HEIGHT_BORDER);
            DisplayFrame = new Rectangle(88, 56, USABLE_WIDTH, USABLE_HEIGHT);

            ScreenBufferPixels = new Color[fullHeight, FULL_WIDTH];
        }
Exemple #2
0
        public void SetTvSystem(TvSystem tvSystem)
        {
            _tvSystem = tvSystem;

            switch (_tvSystem)
            {
            case TvSystem.Ntsc:
                _vblStart = 241;
                _vblEnd   = 261;
                break;

            case TvSystem.Pal:

                break;

            case TvSystem.DualCompatible:

                break;

            default:
                throw new ArgumentOutOfRangeException("tvSystem", "Unsupported TV Sytem");
            }
        }