Skip to content

Commit

Permalink
fix ncurses build error
Browse files Browse the repository at this point in the history
  • Loading branch information
werdahias authored and TheJJ committed Apr 7, 2022
1 parent 4f59093 commit 40f92ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion copying.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ _the openage authors_ are:
| Jens Nyman | nymanjens | nymanjens dawt nj à gmail dawt com |
| Deepak Dinesh | deepak | d.deepakdinesh13 à gmail dawt com |
| Damien Lejay | dlejay | lejay à paracompact dawt space |
| Talha Aamir | sarcxd | sarcxd à gmail dawt com |
| Talha Aamir | sarcxd | sarcxd à gmail dawt com |
| Matthias Geiger | CountOmega | matthias dawt geiger1024 à outlook dawt com |

If you're a first-time committer, add yourself to the above list. This is not
just for legal reasons, but also to keep an overview of all those nicknames.
Expand Down
6 changes: 3 additions & 3 deletions libopenage/event/demo/gui.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2016-2019 the openage authors. See copying.md for legal info.
// Copyright 2016-2022 the openage authors. See copying.md for legal info.

#include "gui.h"

Expand Down Expand Up @@ -133,7 +133,7 @@ void Gui::init() {
int row = (y - buffer.size()) / 2;;
int col = (x - colwidth) / 2;
for (const auto &c : buffer) {
mvprintw(row++, col, c);
mvprintw(row++, col, "%c", c);
}

attroff(COLOR_PAIR(COLOR_DEBUG));
Expand Down Expand Up @@ -206,7 +206,7 @@ void Gui::draw(const std::shared_ptr<PongState> &state, const curve::time_t &now
// show log
int msg_i = 0;
for (auto & msg : this->log_msgs) {
mvprintw((6 + msg_i), state->display_boundary[0]/2 + 10, msg.c_str());
mvprintw((6 + msg_i), state->display_boundary[0]/2 + 10, "%s", msg.c_str());
msg_i += 1;
}

Expand Down

0 comments on commit 40f92ac

Please sign in to comment.