Ticket #1708: fbdemo-text.diff

File fbdemo-text.diff, 1016 bytes (added by eriktorbjorn, 20 years ago)

Patch against an August 9 CVS snapshot

  • scumm/charset.cpp

    diff -ur ScummVM-cvs20040809/scumm/charset.cpp ScummVM-cvs20040809+hack/scumm/charset.cpp
    old new  
    982982        if (_ignoreCharsetMask || !vs->hasTwoBuffers) {
    983983                dest_ptr = vs->screenPtr + vs->xstart + drawTop * vs->width + _left;
    984984        } else {
    985                 dest_ptr = (byte *)_vm->gdi._textSurface.pixels + drawTop * _vm->gdi._textSurface.pitch + _left;
     985                dest_ptr = (byte *)_vm->gdi._textSurface.pixels + _top * _vm->gdi._textSurface.pitch + _left;
    986986        }
    987987
    988988        drawBits1(vs, dest_ptr, char_ptr, drawTop, 8, 8);
     
    10981098        if (_ignoreCharsetMask || !vs->hasTwoBuffers) {
    10991099                dst = vs->screenPtr + vs->xstart + drawTop * vs->width + _left;
    11001100        } else {
    1101                 dst = (byte *)_vm->gdi._textSurface.pixels + drawTop * _vm->gdi._textSurface.pitch + _left;
     1101                dst = (byte *)_vm->gdi._textSurface.pixels + _top * _vm->gdi._textSurface.pitch + _left;
    11021102        }
    11031103
    11041104        back = dst;