QTfrontend/net/hwmap.cpp
branchios-develop
changeset 13418 ba39a1d396c0
parent 12902 fc47fc4af6bd
child 14604 b86e6e4f3c58
equal deleted inserted replaced
13416:6e8b807bda4b 13418:ba39a1d396c0
    77 
    77 
    78     if (readbuffer.size() == 128 * 32 + 1)
    78     if (readbuffer.size() == 128 * 32 + 1)
    79     {
    79     {
    80         quint8 *buf = (quint8*) readbuffer.constData();
    80         quint8 *buf = (quint8*) readbuffer.constData();
    81         QImage im(buf, 256, 128, QImage::Format_Mono);
    81         QImage im(buf, 256, 128, QImage::Format_Mono);
    82         im.setNumColors(2);
    82         im.setColorCount(2);
    83 
    83 
    84         QPixmap px(QSize(256, 128));
    84         QPixmap px(QSize(256, 128));
    85         QPixmap pxres(px.size());
    85         QPixmap pxres(px.size());
    86         QPainter p(&pxres);
    86         QPainter p(&pxres);
    87 
    87