1 class Video { 2 public: 3 enum Mode { 4 ModeNTSC, 5 ModePAL, 6 }; 7 void set_mode(Mode); 8 9 private: 10 Mode mode; 11 bool frame_hires; 12 bool frame_interlace; 13 14 unsigned pline_width[240]; //progressive 15 unsigned iline_width[480]; //interlace 16 17 void update(); 18 void scanline(); 19 void init(); 20 21 static const uint8_t cursor[15 * 15]; 22 void draw_cursor(uint16_t color, int x, int y); 23 24 friend class System; 25 }; 26 27 extern Video video; 28