git-svn-id: svn://db.shs.com.ru/libs@711 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -303,7 +303,11 @@ void Graphic::canvasPaintEvent() {
|
||||
lasth = hei;
|
||||
font_sz = fontMetrics().size(0, "0");
|
||||
font_sz.setHeight(font_sz.height() * 1.);
|
||||
#ifdef Q_OS_ANDROID
|
||||
font_sz.setWidth(font_sz.width() * 6);
|
||||
#else
|
||||
font_sz.setWidth(font_sz.width() * 8);
|
||||
#endif
|
||||
thick = lineThickness();
|
||||
if (buffer != 0) if (buffer->width() != wid || buffer->height() != hei) {delete buffer; buffer = 0;}
|
||||
if (buffer == 0) buffer = new QImage(wid, hei, QImage::Format_RGB32);
|
||||
|
||||
Reference in New Issue
Block a user