Ticket #8075: ft-hack.diff

File ft-hack.diff, 1.4 KB (added by eriktorbjorn, 22 years ago)

Patch against an October 1 CVS snapshot

  • scummvm/scumm/string.cpp

    diff -ur ScummVM-cvs20021001/scummvm/scumm/string.cpp ScummVM-cvs20021001+hack/scummvm/scumm/string.cpp
    old new  
    560560                charset._left -= charset.getStringWidth(a, buf, 0) >> 1;
    561561        }
    562562
    563         charset._ignoreCharsetMask = 1;
     563        // Full Throttle's conversation menus should definitely mask the
     564        // background.
     565
     566        if (a != 4 || _gameId != GID_FT)
     567                charset._ignoreCharsetMask = 1;
    564568
    565569        if (!buf[0]) {
    566570                buf[0] = ' ';
     
    598602                                break;
    599603                        }
    600604                } else {
    601                         if (a == 1 && (_features & GF_AFTER_V6))
    602 
     605                        if (a == 1 && (_features & GF_AFTER_V6)) {
    603606                                if (_string[a].no_talk_anim == 0)
    604607                                        charset._blitAlso = true;
     608                        }
    605609                        if (_features & GF_OLD256)
    606610                                charset.printCharOld(chr);
    607611                        else
     
    615619        if (a == 0) {
    616620                charset._xpos2 = charset._left;
    617621                charset._ypos2 = charset._top;
     622        } else if (a == 4 && _gameId == GID_FT) {
     623                charset._hasMask = true;
     624                if (charset._strLeft < gdi._mask_left)
     625                        gdi._mask_left = charset._strLeft;
     626                if (charset._strRight > gdi._mask_right)
     627                        gdi._mask_right = charset._strRight;
     628                if (charset._strTop < gdi._mask_top)
     629                        gdi._mask_top = charset._strTop;
     630                if (charset._strBottom > gdi._mask_bottom)
     631                        gdi._mask_bottom = charset._strBottom;
    618632        }
    619633}
    620634