Fixed initialisation of tf in file_open(). Without setting the memory to 0,
[cinelerra_cv/mob.git] / guicast / bcpixmapsw.C
blob17110ac5e68a03b1cfa0b873311bff1e56ec76df
1 #include "bcpixmap.h"
2 #include "bcpixmapsw.h"
3 #include "bcresources.h"
4 #include "colors.h"
5 #include "keys.h"
6 #include "units.h"
7 #include "vframe.h"
9 #include <ctype.h>
10 #include <math.h>
11 #include <string.h>
13 BC_PixmapSW::BC_PixmapSW(int x, int y, BC_Pixmap *thepixmap)
14  : BC_SubWindow(x, y, -1, -1, -1)
16         this->thepixmap = thepixmap;
19 BC_PixmapSW::~BC_PixmapSW()
23 int BC_PixmapSW::initialize()
25         w = thepixmap->get_w();
26         h = thepixmap->get_h();
28         BC_SubWindow::initialize();
29         draw();
30         return 0;
33 int BC_PixmapSW::reposition_widget(int x, int y)
35         BC_WindowBase::reposition_window(x, y);
36         draw();
37         return 0;
40 int BC_PixmapSW::draw()
42         draw_top_background(parent_window, 0, 0, get_w(), get_h());
43         draw_pixmap(thepixmap);
44         flash();
45         return 0;