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

tweak

parent 5d4ac776
No related branches found
No related tags found
No related merge requests found
......@@ -316,6 +316,7 @@ FlGui::FlGui(int argc, char **argv)
fullscreen = new openglWindow(100, 100, 100, 100);
fullscreen->mode(FL_RGB | FL_DEPTH | (CTX::instance()->db ? FL_DOUBLE : FL_SINGLE));
fullscreen->end();
fullscreen->fullscreen();
options = new optionWindow(CTX::instance()->deltaFontSize);
fields = new fieldWindow(CTX::instance()->deltaFontSize);
......@@ -977,12 +978,14 @@ void window_cb(Fl_Widget *w, void *data)
FlGui::instance()->fullscreen->getDrawContext()->copyViewAttributes
(FlGui::instance()->getCurrentOpenglWindow()->getDrawContext());
openglWindow::setLastHandled(FlGui::instance()->fullscreen);
FlGui::instance()->fullscreen->fullscreen();
for(unsigned int i = 0; i < FlGui::instance()->graph.size(); i++)
FlGui::instance()->graph[i]->getWindow()->hide();
drawContext::global()->draw();
fullscreen = 1;
}
else{
FlGui::instance()->fullscreen->fullscreen_off();
for(unsigned int i = 0; i < FlGui::instance()->graph.size(); i++)
FlGui::instance()->graph[i]->getWindow()->show();
FlGui::instance()->graph[0]->gl[0]->getDrawContext()->copyViewAttributes
(FlGui::instance()->getCurrentOpenglWindow()->getDrawContext());
openglWindow::setLastHandled(FlGui::instance()->graph[0]->gl[0]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment