Subversion Repositories tpanel

Rev

Rev 361 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 361 Rev 363
Line 3077... Line 3077...
3077
 
3077
 
3078
    QByteArray buf;
3078
    QByteArray buf;
3079
 
3079
 
3080
    if (bm.buffer && bm.rowBytes > 0)
3080
    if (bm.buffer && bm.rowBytes > 0)
3081
    {
3081
    {
3082
        size_t size = bm.width * bm.height * (bm.rowBytes / bm.width);
3082
        size_t size = (size_t)bm.width * (size_t)bm.height * (size_t)(bm.rowBytes / bm.width);
3083
        buf.insert(0, (const char *)bm.buffer, size);
3083
        buf.insert(0, (const char *)bm.buffer, size);
3084
    }
3084
    }
3085
 
3085
 
3086
    emit sigInputText(button, buf, bm.width, bm.height, frame, bm.rowBytes);
3086
    emit sigInputText(button, buf, bm.width, bm.height, frame, bm.rowBytes);
3087
//#ifndef Q_OS_ANDROID
3087
//#ifndef Q_OS_ANDROID
Line 3104... Line 3104...
3104
 
3104
 
3105
    QByteArray buf;
3105
    QByteArray buf;
3106
 
3106
 
3107
    if (bm.buffer && bm.rowBytes > 0)
3107
    if (bm.buffer && bm.rowBytes > 0)
3108
    {
3108
    {
3109
        size_t size = bm.width * bm.height * (bm.rowBytes / bm.width);
3109
        size_t size = (size_t)bm.width * (size_t)bm.height * (size_t)(bm.rowBytes / bm.width);
3110
        buf.insert(0, (const char *)bm.buffer, size);
3110
        buf.insert(0, (const char *)bm.buffer, size);
3111
    }
3111
    }
3112
 
3112
 
3113
    emit sigListBox(button, buf, bm.width, bm.height, frame, bm.rowBytes);
3113
    emit sigListBox(button, buf, bm.width, bm.height, frame, bm.rowBytes);
3114
}
3114
}
Line 5689... Line 5689...
5689
                {
5689
                {
5690
                    QByteArray buf;
5690
                    QByteArray buf;
5691
 
5691
 
5692
                    if (bm.buffer && bm.rowBytes > 0)
5692
                    if (bm.buffer && bm.rowBytes > 0)
5693
                    {
5693
                    {
5694
                        size_t s = bm.width * bm.height * (bm.rowBytes / bm.width);
5694
                        size_t s = (size_t)bm.width * (size_t)bm.height * (size_t)(bm.rowBytes / bm.width);
5695
                        buf.insert(0, (const char *)bm.buffer, s);
5695
                        buf.insert(0, (const char *)bm.buffer, s);
5696
                    }
5696
                    }
5697
 
5697
 
5698
                    MSG_PROTOCOL("Replay: INTEXT object " << handleToString(handle));
5698
                    MSG_PROTOCOL("Replay: INTEXT object " << handleToString(handle));
5699
                    emit sigInputText(button, buf, bm.width, bm.height, bm.rowBytes, frame);
5699
                    emit sigInputText(button, buf, bm.width, bm.height, bm.rowBytes, frame);