MCPcopy Create free account
hub / github.com/cxasm/notepad-- / InitPixMap

Method InitPixMap

src/qscint/src/PlatQt.cpp:264–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262}
263
264void SurfaceImpl::InitPixMap(int width, int height, Surface *sid, WindowID wid)
265{
266 Release();
267
268 int dpr = PWindow(wid)->devicePixelRatio();
269 QPixmap *pixmap = new QPixmap(width * dpr, height * dpr);
270 pixmap->setDevicePixelRatio(dpr);
271
272 pd = pixmap;
273
274 painter = new QPainter(pd);
275 my_resources = true;
276
277 SetUnicodeMode(static_cast<SurfaceImpl *>(sid)->unicodeMode);
278}
279
280void SurfaceImpl::Release()
281{

Callers 3

RefreshPixMapsMethod · 0.80
RefreshPixMapsMethod · 0.80
RefreshPixMapsMethod · 0.80

Calls 1

PWindowFunction · 0.85

Tested by

no test coverage detected