Skip to content
Snippets Groups Projects
Commit d23432f6 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

tweak

parent c31a51a2
No related branches found
No related tags found
No related merge requests found
......@@ -661,7 +661,8 @@ void FlGui::setStatus(const std::string &msg, bool opengl)
{
if(!opengl){
static char buff[1024];
strncpy(buff, msg.c_str(), sizeof(buff) - 1);
std::string tmp = std::string(" ") + msg;
strncpy(buff, tmp.c_str(), sizeof(buff) - 1);
buff[sizeof(buff) - 1] = '\0';
for(unsigned int i = 0; i < graph.size(); i++){
graph[i]->getProgress()->label(buff);
......
......@@ -2711,7 +2711,7 @@ graphicWindow::graphicWindow(bool main, int numTiles, bool detachedMenu)
_butt[i]->align(FL_ALIGN_CENTER | FL_ALIGN_INSIDE | FL_ALIGN_CLIP);
}
x += 6;
x += 4;
_label = new Fl_Progress(x, mh + glheight + mheight + 2, width - x, sht);
_label->box(FL_FLAT_BOX);
_label->align(FL_ALIGN_LEFT | FL_ALIGN_INSIDE | FL_ALIGN_CLIP);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment