fix some errs
This commit is contained in:
parent
fcbb82770c
commit
9c398557df
1 changed files with 4 additions and 1 deletions
|
@ -11,7 +11,8 @@ int main(void) {
|
||||||
otk::OBDisplay::initialize(NULL);
|
otk::OBDisplay::initialize(NULL);
|
||||||
otk::Configuration style_conf(False);
|
otk::Configuration style_conf(False);
|
||||||
otk::OBTimerQueueManager *tm = new otk::OBTimerQueueManager();
|
otk::OBTimerQueueManager *tm = new otk::OBTimerQueueManager();
|
||||||
const otk::ScreenInfo *s_info = otk::OBDisplay::screenInfo(0);
|
const otk::ScreenInfo *s_info =
|
||||||
|
otk::OBDisplay::screenInfo(DefaultScreen(otk::OBDisplay::display));
|
||||||
otk::BImageControl *ctrl = new otk::BImageControl(tm, s_info, True, 4, 5, 200);
|
otk::BImageControl *ctrl = new otk::BImageControl(tm, s_info, True, 4, 5, 200);
|
||||||
|
|
||||||
otk::Style *my_style = new otk::Style(0ul, ctrl);
|
otk::Style *my_style = new otk::Style(0ul, ctrl);
|
||||||
|
@ -53,5 +54,7 @@ int main(void) {
|
||||||
delete tm;
|
delete tm;
|
||||||
delete ctrl;
|
delete ctrl;
|
||||||
|
|
||||||
|
otk::OBDisplay::destroy();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue