mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-07 10:48:43 +00:00
DREAMWEB: 'getreelstart' ported to C++
This commit is contained in:
parent
a8c619d7ad
commit
cea283644f
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -107,6 +107,7 @@
|
||||
void cancelch0();
|
||||
void cancelch1();
|
||||
void plotreel();
|
||||
Reel *getreelstartCPP();
|
||||
void dealwithspecial(uint8 firstParam, uint8 secondParam);
|
||||
void zoom();
|
||||
void crosshair();
|
||||
|
Loading…
x
Reference in New Issue
Block a user