class Video {
public:
  enum Mode {
    ModeNTSC,
    ModePAL,
  };
  void set_mode(Mode);

private:
  Mode mode;
  bool frame_hires;
  bool frame_interlace;
  bool frame_field;

  unsigned pline_width[240];  //progressive

  void update();
  void scanline();
  void init();

  static const uint8_t cursor[15 * 15];
  void draw_cursor(uint16_t color, int x, int y);

  friend class System;
};

extern Video video;
