mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 10:40:42 +00:00
Force Report width to 2048 for uniform sizes
This commit is contained in:
parent
1d914aed4d
commit
ae6914946a
@ -730,11 +730,11 @@ void MainWindow::PrintReport(gGraphView *gv,QString name, QDate date)
|
||||
painter.begin(printer);
|
||||
|
||||
GLint gw;
|
||||
#ifdef Q_WS_WIN32
|
||||
//#ifdef Q_WS_WIN32
|
||||
gw=2048; // Rough guess.. No GL_MAX_RENDERBUFFER_SIZE in mingw.. :(
|
||||
#else
|
||||
glGetIntegerv(GL_MAX_RENDERBUFFER_SIZE,&gw);
|
||||
#endif
|
||||
//#else
|
||||
// glGetIntegerv(GL_MAX_RENDERBUFFER_SIZE,&gw);
|
||||
//#endif
|
||||
|
||||
//QSizeF pxres=printer->paperSize(QPrinter::DevicePixel);
|
||||
QRect prect=printer->pageRect();
|
||||
|
Loading…
Reference in New Issue
Block a user