X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Fstyle.cc;h=5aeef434a249532cc35ef213d08a44d034189249;hb=5a139f7263e33b499836f5df9ac37400e02c32f9;hp=a3d21788d5fb8871e36e2af2ccec68997be73e40;hpb=c6f228f3ff9ab7087669366a23d2ae61d8e5b9b9;p=chaz%2Fopenbox diff --git a/otk/style.cc b/otk/style.cc index a3d21788..5aeef434 100644 --- a/otk/style.cc +++ b/otk/style.cc @@ -19,7 +19,7 @@ Style::Style() : font(NULL) Style::Style(BImageControl *ctrl) : image_control(ctrl), font(0), - screen_number(ctrl->getScreenInfo()->getScreenNumber()) + screen_number(ctrl->getScreenInfo()->screen()) { } @@ -136,7 +136,7 @@ void Style::load(const Configuration &style) { // load bevel, border and handle widths const ScreenInfo *s_info = OBDisplay::screenInfo(screen_number); - unsigned int width = s_info->getRect().width(); + unsigned int width = s_info->rect().width(); if (! style.getValue("handleWidth", handle_width) || handle_width > width/2 || handle_width == 0) @@ -160,7 +160,7 @@ void Style::load(const Configuration &style) { void Style::readDatabaseMask(const std::string &rname, PixmapMask &pixmapMask, const Configuration &style) { - Window root_window = OBDisplay::screenInfo(screen_number)->getRootWindow(); + Window root_window = OBDisplay::screenInfo(screen_number)->rootWindow(); std::string s; int hx, hy; //ignored int ret = BitmapOpenFailed; //default to failure. @@ -252,7 +252,7 @@ BFont *Style::readDatabaseFont(const std::string &rbasename, tint = atoi(s.c_str()); } - fontstring = "Arial,Sans-8:bold"; + fontstring = "Arial,Sans-9:bold"; // if this fails, it ::exit()'s return new BFont(screen_number, fontstring, dropShadow, offset, tint);