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
...@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment