Ticket #9119: sci_parameter_previously_defined_as_type.patch

File sci_parameter_previously_defined_as_type.patch, 1.2 KB (added by Templier, 14 years ago)

Patch for SCI gui_picture.cpp/h

  • engines/sci/gui/gui_picture.cpp

     
    539539        error("picture vector data without terminator");
    540540}
    541541
    542 bool SciGuiPicture::vectorIsNonOpcode(byte byte) {
    543         if (byte >= PIC_OP_FIRST)
     542bool SciGuiPicture::vectorIsNonOpcode(byte value) {
     543        if (value >= PIC_OP_FIRST)
    544544                return false;
    545545        return true;
    546546}
  • engines/sci/gui/gui_picture.h

     
    4646        void drawSci11Vga();
    4747        void drawCelData(byte *inbuffer, int size, int headerPos, int rlePos, int literalPos, int16 callerX, int16 callerY);
    4848        void drawVectorData(byte *data, int size);
    49         bool vectorIsNonOpcode(byte byte);
     49        bool vectorIsNonOpcode(byte value);
    5050        void vectorGetAbsCoords(byte *data, int &curPos, int16 &x, int16 &y);
    5151        void vectorGetAbsCoordsNoMirror(byte *data, int &curPos, int16 &x, int16 &y);
    5252        void vectorGetRelCoords(byte *data, int &curPos, int16 &x, int16 &y);