Mentions légales du service

Skip to content
Snippets Groups Projects
Commit abbc344e authored by Olivier Lagrasse's avatar Olivier Lagrasse
Browse files

- Petite amelioration qui donne le focus a la zone de rendu. Permet de

faire du zoom et du scroll sans devoir prealablement cliquer dessus.
parent 89e5e82d
Branches
Tags
No related merge requests found
...@@ -224,7 +224,7 @@ void Render_opengl::paintGL(){ ...@@ -224,7 +224,7 @@ void Render_opengl::paintGL(){
string buf_txt; string buf_txt;
resizeGL(width(), height()); resizeGL(width(), height());
setFocus(Qt::ActiveWindowFocusReason);/* give the focus to the render area for mouse and keyboard events */
glClearDepth(1.0); glClearDepth(1.0);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment