]> Dogcows Code - chaz/openbox/commitdiff
fix some errs
authorDana Jansens <danakj@orodu.net>
Mon, 11 Nov 2002 08:42:19 +0000 (08:42 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 11 Nov 2002 08:42:19 +0000 (08:42 +0000)
otk/otk_test.cc

index 810e046529f0fd02655850c06961d18631ec325e..7c0dd5eb4f2ee6d2ffffa9ed3c1dda509ade7600 100644 (file)
@@ -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;
 }
This page took 0.028783 seconds and 4 git commands to generate.