message: using OSPRay style in imguiViewer
diff: @@ -338,29 +338,30 @@ namespace ospray {
  ImGui::Begin("Viewer Controls: press 'g' to show/hide", nullptr, flags);
  ImGui::SetWindowFontScale(0.5f*fontScale);
  - if (ImGui::BeginMenuBar())
  - {
  - if (ImGui::BeginMenu("App"))
  - {
  + if (ImGui::BeginMenuBar()) {
  + if (ImGui::BeginMenu("App")) {
  #if 0
  ImGui::Checkbox("Show ImGui Demo Window", &demo_window);
  #endif
  ImGui::Checkbox("Auto-Rotate", &animating);
  +
  bool paused = renderingPaused;
  - if (ImGui::Checkbox("Pause Rendering", &paused)) {
  + if (ImGui::Checkbox("Pause Rendering", &paused))
  toggleRenderingPaused();
  - }
  - if (ImGui::MenuItem("Take Screenshot")) saveScreenshot("ospimguiviewer");
  +
  + if (ImGui::MenuItem("Take Screenshot"))
  + saveScreenshot("ospimguiviewer");
  +
  if (ImGui::MenuItem("Quit")) {
  renderEngine.stop();
  std::exit(0);
  }
  +
  ImGui::EndMenu();
  }
  - if (ImGui::BeginMenu("View"))
  - {
  + if (ImGui::BeginMenu("View")) {
  bool orbitMode = (manipulator == inspectCenterManipulator);
  bool flyMode = (manipulator == moveModeManipulator);
  @@ -383,16 +384,15 @@ namespace ospray {
  if (demo_window) ImGui::ShowTestWindow(&demo_window);
  - if (ImGui::CollapsingHeader("FPS Statistics", "FPS Statistics", true, true))
  - {
  + if (ImGui::CollapsingHeader("FPS Statistics", "FPS Statistics",
  + true, true)) {
  ImGui::NewLine();
  ImGui::Text("OSPRay render rate: %.1f FPS", lastFrameFPS);
  ImGui::Text(" GUI display rate: %.1f FPS", ImGui::GetIO().Framerate);
  ImGui::NewLine();
  }
  - if (ImGui::CollapsingHeader("Renderer Parameters"))
  - {
  + if (ImGui::CollapsingHeader("Renderer Parameters")) {
  bool renderer_changed = false;
  static int numThreads = -1;
  