From: Dana Jansens Date: Mon, 11 Nov 2002 08:42:19 +0000 (+0000) Subject: fix some errs X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=9c398557df14070747d8eb96d4d19c0643a65cd0;p=chaz%2Fopenbox fix some errs --- diff --git a/otk/otk_test.cc b/otk/otk_test.cc index 810e0465..7c0dd5eb 100644 --- a/otk/otk_test.cc +++ b/otk/otk_test.cc @@ -11,7 +11,8 @@ int main(void) { otk::OBDisplay::initialize(NULL); otk::Configuration style_conf(False); 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::Style *my_style = new otk::Style(0ul, ctrl); @@ -53,5 +54,7 @@ int main(void) { delete tm; delete ctrl; + otk::OBDisplay::destroy(); + return 0; }