History

fix the first issues

Sam Gateau committed 12 years ago

Commit 113fb191 parent 700ec5c3 files · +7 −7Browse files

Showing the changes to interface/src/Application.cpp (1 of 3 files). Show all

Unified · Split

interface/src/Application.cpp+2−2
@@ -700,7 +700,7 @@ void Application::paintGL() { · 699 unmodified lines
700700
701701 // Viewport is assigned to the size of the framebuffer
702702 QSize size = Application::getInstance()->getTextureCache()->getPrimaryFramebufferObject()->size();
703− glViewport( 0, 0, size.width(), size.height());
703+ glViewport(0, 0, size.width(), size.height());
704704
705705 glMatrixMode(GL_MODELVIEW);
706706 glPushMatrix();
@@ -3144,7 +3144,7 @@ void Application::renderRearViewMirror(const QRect& region, bool billboard) { · 2437 unmodified lines
31443144 // if not rendering the billboard, the region is in device independent coordinates; must convert to device
31453145 QSize size = getTextureCache()->getFrameBufferSize();
31463146 float ratio = QApplication::desktop()->windowHandle()->devicePixelRatio();
3147− ratio = size.height() / float(_glWidget->getDeviceHeight());
3147+ ratio = size.height() / (float)_glWidget->getDeviceHeight();
31483148 int x = region.x() * ratio, y = region.y() * ratio, width = region.width() * ratio, height = region.height() * ratio;
31493149 glViewport(x, size.height() - y - height, width, height);
31503150 glScissor(x, size.height() - y - height, width, height);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t