* Allow Frame's to be located in both rows and columns. Improved min

height/width for windows.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@748 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2006-07-28 00:17:54 +00:00
parent fc76a11d71
commit 4c9fc671be
40 changed files with 363 additions and 193 deletions
+3 -3
View File
@@ -53,9 +53,9 @@ WindowStatusbar::redraw() {
m_canvas->erase();
// TODO: Make a buffer with size = get_width?
char buffer[m_canvas->get_width() + 1];
char buffer[m_canvas->width() + 1];
char* position;
char* last = buffer + m_canvas->get_width();
char* last = buffer + m_canvas->width();
// if (torrent::up_throttle() == 0)
// position = std::max(snprintf(buffer, 128, "off/"), 0);
@@ -96,7 +96,7 @@ WindowStatusbar::redraw() {
if (last > buffer) {
position = print_status_extra(buffer, last, control);
m_canvas->print(m_canvas->get_width() - (position - buffer), 0, "%s", buffer);
m_canvas->print(m_canvas->width() - (position - buffer), 0, "%s", buffer);
}
m_lastTick = control->tick();