Ticket #8447: scumm_v6_cursor.diff
File scumm_v6_cursor.diff, 4.2 KB (added by , 19 years ago) |
---|
-
scumm/cursor.cpp
RCS file: /cvsroot/scummvm/scummvm/scumm/cursor.cpp,v retrieving revision 2.45 diff -u -r2.45 cursor.cpp
75 75 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000 76 76 }; 77 77 78 static const byte default_v6_cursor[] = { 79 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0x00,0x0F,0x00, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 80 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0x00,0x0F,0x00, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 81 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0x00,0x0F,0x00, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 82 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0x00,0x0F,0x00, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 83 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0x00,0x0F,0x00, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 84 0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x0F,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0xFF, 85 0x0F,0x0F,0x0F,0x0F,0x0F,0x0F, 0x0F,0x0F,0x0F, 0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0xFF, 86 0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x0F,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0xFF, 87 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0x00,0x0F,0x00, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 88 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0x00,0x0F,0x00, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 89 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0x00,0x0F,0x00, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 90 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0x00,0x0F,0x00, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 91 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0x00,0x0F,0x00, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 92 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 93 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 94 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF 95 }; 96 78 97 ScummEngine_v5::ScummEngine_v5(GameDetector *detector, OSystem *syst, const ScummGameSettings &gs, uint8 md5sum[16], int substResFileNameIndex) 79 98 : ScummEngine(detector, syst, gs, md5sum, substResFileNameIndex) { 80 99 … … 133 152 setCursorFromBuffer((byte *)vs->pixels + (y - vs->topline) * vs->pitch + x, w, h, vs->pitch); 134 153 } 135 154 136 void ScummEngine::setCursorFromBuffer(byte *ptr, int width, int height, int pitch) { 155 void ScummEngine_v6::setDefaultCursor() { 156 setCursorHotspot(7,6); 157 setCursorFromBuffer(default_v6_cursor,16,16,16); 158 } 159 160 void ScummEngine::setCursorFromBuffer(const byte *ptr, int width, int height, int pitch) { 137 161 uint size; 138 162 byte *dst; 139 163 -
scumm/intern.h
RCS file: /cvsroot/scummvm/scummvm/scumm/intern.h,v retrieving revision 2.511 diff -u -r2.511 intern.h
537 537 virtual void writeArray(int array, int index, int base, int value); 538 538 void shuffleArray(int num, int minIdx, int maxIdx); 539 539 540 void setDefaultCursor(); 540 541 void setCursorTransparency(int a); 541 542 void setCursorHotspot(int x, int y); 542 543 -
scumm/scumm.cpp
RCS file: /cvsroot/scummvm/scummvm/scumm/scumm.cpp,v retrieving revision 1.549 diff -u -r1.549 scumm.cpp
1835 1835 1836 1836 void ScummEngine_v6::scummInit() { 1837 1837 ScummEngine::scummInit(); 1838 1839 if (_gameId == GID_TENTACLE && res.roomno[rtRoom][60]) { 1840 // HACK: For DOTT we manually set the default cursor. See also bug #786994 1841 setCursorFromImg(697, 60, 1); 1842 setCursorTransparency(1); 1843 } 1838 setDefaultCursor(); 1844 1839 } 1845 1840 1846 1841 void ScummEngine_v60he::scummInit() { -
scumm/scumm.h
RCS file: /cvsroot/scummvm/scummvm/scumm/scumm.h,v retrieving revision 1.635 diff -u -r1.635 scumm.h
983 983 984 984 void setupCursor(); 985 985 986 void setCursorFromBuffer( byte *ptr, int width, int height, int pitch);986 void setCursorFromBuffer(const byte *ptr, int width, int height, int pitch); 987 987 988 988 public: 989 989 void markRectAsDirty(VirtScreenNumber virt, int left, int right, int top, int bottom, int dirtybit = 0);