Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ namespace Bastet{

BorderedWindow w(d.y,d.x);
wattrset((WINDOW *)w,COLOR_PAIR(20));
mvwprintw(w,0,0,message.c_str());
mvwprintw(w,0,0,"%s",message.c_str());
w.RedrawBorder();
wrefresh(w);
PrepareUiGetch();
Expand All @@ -200,7 +200,7 @@ namespace Bastet{
d.y+=3;
BorderedWindow w(d.y,d.x);
wattrset((WINDOW *)w,COLOR_PAIR(20));
mvwprintw(w,0,0,message.c_str());
mvwprintw(w,0,0,"%s",message.c_str());
w.RedrawBorder();
wrefresh(w);
PrepareUiGetch();
Expand All @@ -221,7 +221,7 @@ namespace Bastet{

BorderedWindow w(d.y,d.x);
wattrset((WINDOW *)w,COLOR_PAIR(20));
mvwprintw(w,0,0,message.c_str());
mvwprintw(w,0,0,"%s",message.c_str());
w.RedrawBorder();
wrefresh(w);
PrepareUiGetch();
Expand All @@ -239,7 +239,7 @@ namespace Bastet{
BorderedWindow w(d.y,d.x);
wattrset((WINDOW *)w,COLOR_PAIR(20));
for(size_t i=0;i<choices.size();++i){
mvwprintw(w,i,4,choices[i].c_str());
mvwprintw(w,i,4,"%s",choices[i].c_str());
}
w.RedrawBorder();
wrefresh(w);
Expand Down Expand Up @@ -290,7 +290,7 @@ namespace Bastet{
Dot d=BoundingRect(msg );
BorderedWindow w(d.y,d.x);
wattrset((WINDOW *)w,COLOR_PAIR(20));
mvwprintw(w,0,0,msg.c_str());
mvwprintw(w,0,0,"%s",msg.c_str());
w.RedrawBorder();
ch=getch();
switch(ch){
Expand Down