- Rect bounds(b[0],b[1],b[2],b[3]);
+ View view(doc,scr, bounds);
+
+ view.SetLazyRendering(lazy_rendering);
+ view.SetGPURendering(gpu_rendering);
+ view.SetGPUTransform(gpu_transform);
+
+
+
+
+ #ifndef CONTROLPANEL_DISABLED
+ if (!scr.Valid()) hide_control_panel = true;
+ SDL_Thread * cp_thread = NULL;
+ if (!hide_control_panel)
+ {
+ ControlPanel::RunArgs args = {argc, argv, view, doc, scr};
+ cp_thread = SDL_CreateThread(ControlPanel::Run, "ControlPanel", &args);
+ if (cp_thread == NULL)
+ {
+ Error("Couldn't create ControlPanel thread: %s", SDL_GetError());
+ }
+ }
+ #else //CONTROLPANEL_DISABLED
+ Debug("No control panel, hide_control_panel is %d", hide_control_panel);
+ #endif