X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Fotk_test.cc;h=7bd6e9d618eb3eb6c5699107be01d7e21f7ce19f;hb=c4a1fac49da32250dc4567880b385feb7feaa908;hp=810e046529f0fd02655850c06961d18631ec325e;hpb=2fb944068494f9b6ef97c28aac0c0d814d9bd607;p=chaz%2Fopenbox diff --git a/otk/otk_test.cc b/otk/otk_test.cc index 810e0465..7bd6e9d6 100644 --- a/otk/otk_test.cc +++ b/otk/otk_test.cc @@ -5,13 +5,12 @@ #include "image.hh" #include "style.hh" -#include - 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 +52,7 @@ int main(void) { delete tm; delete ctrl; + otk::OBDisplay::destroy(); + return 0; }