Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Sep 1, 2019
1 parent 408722c commit 30e99b6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
5 changes: 3 additions & 2 deletions doomsday/libs/shell/src/logwidget.cpp
Expand Up @@ -204,8 +204,9 @@ void LogWidget::draw()
TextCanvas *buf = new TextCanvas(Vec2ui(pos.width(), lines.size()));
d->cache.append(buf);

TextCanvas::AttribChar::Attribs attribs = (entry.flags() & LogEntry::Remote?
TextCanvas::AttribChar::DefaultAttributes : TextCanvas::AttribChar::Bold);
TextCanvas::AttribChar::Attribs attribs =
(entry.flags() & LogEntry::Remote ? TextCanvas::AttribChar::DefaultAttributes
: TextCanvas::AttribChar::Bold);

// Draw the text.
for (int i = 0; i < lines.sizei(); ++i)
Expand Down
2 changes: 1 addition & 1 deletion doomsday/tools/shell-text/src/cursesapp.cpp
@@ -1,6 +1,6 @@
/** @file cursesapp.cpp Application based on curses for input and output.
*
* @authors Copyright © 2013-2017 Jaakko Keränen <jaakko.keranen@iki.fi>
* @authors Copyright © 2013-2018 Jaakko Keränen <jaakko.keranen@iki.fi>
*
* @par License
* GPL: http://www.gnu.org/licenses/gpl.html
Expand Down
2 changes: 1 addition & 1 deletion doomsday/tools/shell-text/src/cursesapp.h
Expand Up @@ -29,7 +29,7 @@ class CursesApp : public de::TextApp

de::shell::TextRootWidget &rootWidget();

int exec();
int exec();
void refresh();
void quit();

Expand Down
9 changes: 3 additions & 6 deletions doomsday/tools/shell-text/src/statuswidget.cpp
Expand Up @@ -33,21 +33,18 @@ DE_PIMPL(StatusWidget)

Impl(Public * i) : Base(i) {}

void refresh()
{
self().redraw();
}
void refresh() { self().redraw(); }

void linkConnected()
{
updateTimer.start(1.0);
self().redraw();
refresh();
}

void linkDisconnected()
{
updateTimer.stop();
self().redraw();
refresh();
}
};

Expand Down

0 comments on commit 30e99b6

Please sign in to comment.