Skip to content

Commit

Permalink
Fix #2751: OpenGL takes up 1/4 of window (#2783)
Browse files Browse the repository at this point in the history
* fix #2751

* clang-format
  • Loading branch information
StasJ committed Jul 9, 2021
1 parent e506b75 commit ff284d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/vaporgui/VizWin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
#include <QFocusEvent>
#include <QMouseEvent>
#include <QCloseEvent>
#include <QApplication>
#include <QDesktopWidget>
#include <QIcon>
#include <vapor/ControlExecutive.h>
#include <vapor/ViewpointParams.h>
Expand Down Expand Up @@ -200,6 +202,8 @@ void VizWin::_setUpProjMatrix()

size_t width, height;
vParams->GetWindowSize(width, height);
width *= QApplication::desktop()->devicePixelRatio();
height *= QApplication::desktop()->devicePixelRatio();
int wWidth = width;
int wHeight = height;

Expand Down

0 comments on commit ff284d2

Please sign in to comment.