class VIFrame {
unsigned char *img_data;
- VFrame *vfrm;
public:
VIFrame(int ww, int hh, int vcmdl) {
int size = BC_CModels::calculate_datasize(ww, hh, -1, vcmdl);
vfrm = new VFrame(img_data, -1, ww, hh, vcmdl, -1);
}
~VIFrame() { delete vfrm; delete [] img_data; }
-
- operator VFrame *() { return vfrm; }
+ VFrame *vfrm;
};
class VIcon
void init_audio(int audio_size);
virtual int64_t set_seq_no(int64_t no) { return seq_no = no; }
- virtual VFrame *frame() { return *images[seq_no]; }
+ virtual VFrame *frame() { return images[seq_no]->vfrm; }
virtual int get_vx() { return 0; }
virtual int get_vy() { return 0; }
virtual void load_audio() {}
void run();
void flash();
int draw(VIcon *vicon);
- int update_view(int do_audio=1);
+ int update_view(int do_audio);
void draw_images();
void start_drawing();
void stop_drawing();
void close_view_popup();
void hide_vicons(int v=1);
int show_vicon(VIcon *next);
- virtual ViewPopup *new_view_window();
+ virtual ViewPopup *new_view_window(ViewPopup *vpopup);
virtual bool visible(VIcon *vicon, int x, int y);
virtual void drawing_started() {}