Ticket #2418: TrackerSettingsWindow.cpp.diff

File TrackerSettingsWindow.cpp.diff, 620 bytes (added by oco, 16 years ago)
  • TrackerSettingsWindow.cpp

     
    364364        else           
    365365            owner->SetHighColor(kBlack);
    366366
    367         owner->MovePenTo(rect.left + 4, rect.bottom - 2);
     367        font_height fontHeight;
     368        owner->GetFontHeight(&fontHeight);
     369        float space = rect.Height() - (fontHeight.ascent + fontHeight.descent + fontHeight.leading);
    368370
     371        owner->MovePenTo(rect.left + 4, rect.top + (space / 2) + fontHeight.ascent);
    369372        owner->DrawString(Text());
    370373
    371374        owner->SetHighColor(kBlack);