Showing the changes to interface/src/Application.cpp (1 of 3 files). Show all
Unified · Split
| @@ -700,7 +700,7 @@ void Application::paintGL() { · 699 unmodified lines | ||
| 700 | 700 | |
| 701 | 701 | // Viewport is assigned to the size of the framebuffer |
| 702 | 702 | QSize size = Application::getInstance()->getTextureCache()->getPrimaryFramebufferObject()->size(); |
| 703 | − glViewport( 0, 0, size.width(), size.height()); | |
| 703 | + glViewport(0, 0, size.width(), size.height()); | |
| 704 | 704 | |
| 705 | 705 | glMatrixMode(GL_MODELVIEW); |
| 706 | 706 | glPushMatrix(); |
| @@ -3144,7 +3144,7 @@ void Application::renderRearViewMirror(const QRect& region, bool billboard) { · 2437 unmodified lines | ||
| 3144 | 3144 | // if not rendering the billboard, the region is in device independent coordinates; must convert to device |
| 3145 | 3145 | QSize size = getTextureCache()->getFrameBufferSize(); |
| 3146 | 3146 | float ratio = QApplication::desktop()->windowHandle()->devicePixelRatio(); |
| 3147 | − ratio = size.height() / float(_glWidget->getDeviceHeight()); | |
| 3147 | + ratio = size.height() / (float)_glWidget->getDeviceHeight(); | |
| 3148 | 3148 | int x = region.x() * ratio, y = region.y() * ratio, width = region.width() * ratio, height = region.height() * ratio; |
| 3149 | 3149 | glViewport(x, size.height() - y - height, width, height); |
| 3150 | 3150 | glScissor(x, size.height() - y - height, width, height); |