mirror of https://github.com/procxx/kepka.git
				
				
				
			Fix call panel with empty user photo on Retina.
This commit is contained in:
		
							parent
							
								
									11d4c50202
								
							
						
					
					
						commit
						c9a26fd006
					
				| 
						 | 
					@ -473,6 +473,7 @@ void Panel::createUserpicCache(ImagePtr image) {
 | 
				
			||||||
		if (cRetina()) _userPhoto.setDevicePixelRatio(cRetinaFactor());
 | 
							if (cRetina()) _userPhoto.setDevicePixelRatio(cRetinaFactor());
 | 
				
			||||||
	} else {
 | 
						} else {
 | 
				
			||||||
		auto filled = QImage(QSize(st::callWidth, st::callWidth) * cIntRetinaFactor(), QImage::Format_ARGB32_Premultiplied);
 | 
							auto filled = QImage(QSize(st::callWidth, st::callWidth) * cIntRetinaFactor(), QImage::Format_ARGB32_Premultiplied);
 | 
				
			||||||
 | 
							filled.setDevicePixelRatio(cRetinaFactor());
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			Painter p(&filled);
 | 
								Painter p(&filled);
 | 
				
			||||||
			EmptyUserpic(_user->colorIndex(), _user->name).paintSquare(p, 0, 0, st::callWidth, st::callWidth);
 | 
								EmptyUserpic(_user->colorIndex(), _user->name).paintSquare(p, 0, 0, st::callWidth, st::callWidth);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue