MCPcopy Create free account
hub / github.com/Audio4Linux/JDSP4Linux / reallocateBuffer

Method reallocateBuffer

3rdparty/qcustomplot/qcustomplot.cpp:703–720  ·  view source on GitHub ↗

inherits documentation from base class */

Source from the content-addressed store, hash-verified

701
702/* inherits documentation from base class */
703void QCPPaintBufferPixmap::reallocateBuffer()
704{
705 setInvalidated();
706 if (!qFuzzyCompare(1.0, mDevicePixelRatio))
707 {
708#ifdef QCP_DEVICEPIXELRATIO_SUPPORTED
709 mBuffer = QPixmap(mSize*mDevicePixelRatio);
710 mBuffer.setDevicePixelRatio(mDevicePixelRatio);
711#else
712 qDebug() << Q_FUNC_INFO << "Device pixel ratios not supported for Qt versions before 5.4";
713 mDevicePixelRatio = 1.0;
714 mBuffer = QPixmap(mSize);
715#endif
716 } else
717 {
718 mBuffer = QPixmap(mSize);
719 }
720}
721
722
723#ifdef QCP_OPENGL_PBUFFER

Callers

nothing calls this directly

Calls 5

setDevicePixelRatioMethod · 0.80
setAlphaMethod · 0.80
setSizeMethod · 0.80
releaseMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected