DREAMWEB: 'getreelstart' ported to C++

This commit is contained in:
Bertrand Augereau 2011-08-11 13:29:33 +02:00
parent a8c619d7ad
commit cea283644f
3 changed files with 7 additions and 2 deletions

View File

@ -537,6 +537,11 @@ Frame *DreamGenContext::findsourceCPP() {
return result;
}
Reel *DreamGenContext::getreelstartCPP() {
Reel *reel = (Reel *)segRef(data.word(kReels)).ptr(kReellist + data.word(kReelpointer) * sizeof(Reel) * 8, sizeof(Reel));
return reel;
}
void DreamGenContext::showreelframe() {
Reel *reel = (Reel *)es.ptr(si, sizeof(Reel));
showreelframe(reel);

View File

@ -832,8 +832,7 @@ void DreamGenContext::dealwithspecial(uint8 firstParam, uint8 secondParam) {
}
void DreamGenContext::plotreel() {
getreelstart();
Reel *reel = (Reel *)es.ptr(si, sizeof(Reel));
Reel *reel = getreelstartCPP();
while (true) {
if (reel->x < 220)
break;

View File

@ -107,6 +107,7 @@
void cancelch0();
void cancelch1();
void plotreel();
Reel *getreelstartCPP();
void dealwithspecial(uint8 firstParam, uint8 secondParam);
void zoom();
void crosshair();