Ticket #8345: scummvm-x11backend.diff

File scummvm-x11backend.diff, 500 bytes (added by SF/njoly, 17 years ago)

Add missing malloc cast

  • backends/x11/x11.cpp

    RCS file: /cvsroot/scummvm/scummvm/backends/x11/x11.cpp,v
    retrieving revision 1.30
    diff -u -r1.30 x11.cpp
     
    818818
    819819        if (_ms_buf)
    820820                free(_ms_buf);
    821         _ms_buf = malloc(w * h);
     821        _ms_buf = (byte *) malloc(w * h);
    822822        memcpy(_ms_buf, buf, w * h);
    823823
    824824        if (_mouse_state_changed == false) {