Force Report width to 2048 for uniform sizes

This commit is contained in:
Mark Watkins 2011-12-20 04:12:04 +10:00
parent 1d914aed4d
commit ae6914946a

View File

@ -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();