QTfrontend/hwmap.cpp
changeset 1791 7c9d645d2591
parent 1790 c84223511ca8
child 1797 fedd8649fdd9
equal deleted inserted replaced
1790:c84223511ca8 1791:7c9d645d2591
    47 	if (readbuffer.size() == 128 * 32 + 1)
    47 	if (readbuffer.size() == 128 * 32 + 1)
    48 	{
    48 	{
    49 		quint8 *buf = (quint8*) readbuffer.constData();
    49 		quint8 *buf = (quint8*) readbuffer.constData();
    50 		QImage im(buf, 256, 128, QImage::Format_Mono);
    50 		QImage im(buf, 256, 128, QImage::Format_Mono);
    51 		im.setNumColors(2);
    51 		im.setNumColors(2);
    52 		emit HHLimitReceived(buf[128 * 32 + 1]);
    52 		emit HHLimitReceived(buf[128 * 32]);
    53 		emit ImageReceived(im);
    53 		emit ImageReceived(im);
    54 	}
    54 	}
    55 }
    55 }
    56 
    56 
    57 void HWMap::SendToClientFirst()
    57 void HWMap::SendToClientFirst()