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
700 700
701 // Viewport is assigned to the size of the framebuffer701 // Viewport is assigned to the size of the framebuffer
702 QSize size = Application::getInstance()->getTextureCache()->getPrimaryFramebufferObject()->size();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 glMatrixMode(GL_MODELVIEW);705 glMatrixMode(GL_MODELVIEW);
706 glPushMatrix();706 glPushMatrix();
@@ -3144,7 +3144,7 @@ void Application::renderRearViewMirror(const QRect& region, bool billboard) { · 2437 unmodified lines
3144 // if not rendering the billboard, the region is in device independent coordinates; must convert to device3144 // if not rendering the billboard, the region is in device independent coordinates; must convert to device
3145 QSize size = getTextureCache()->getFrameBufferSize();3145 QSize size = getTextureCache()->getFrameBufferSize();
3146 float ratio = QApplication::desktop()->windowHandle()->devicePixelRatio();3146 float ratio = QApplication::desktop()->windowHandle()->devicePixelRatio();
3147 ratio = size.height() / float(_glWidget->getDeviceHeight());3147 ratio = size.height() / (float)_glWidget->getDeviceHeight();
3148 int x = region.x() * ratio, y = region.y() * ratio, width = region.width() * ratio, height = region.height() * ratio;3148 int x = region.x() * ratio, y = region.y() * ratio, width = region.width() * ratio, height = region.height() * ratio;
3149 glViewport(x, size.height() - y - height, width, height);3149 glViewport(x, size.height() - y - height, width, height);
3150 glScissor(x, size.height() - y - height, width, height);3150 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