| 262 | } |
| 263 | |
| 264 | void 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 | |
| 280 | void SurfaceImpl::Release() |
| 281 | { |
no test coverage detected