Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
bin_*
.obj_*
mcp/locale.*
MEMORY.md
.DS_Store
5 changes: 4 additions & 1 deletion mcc/Dispatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ HOOKPROTONHNO(DefaultLoadFunc, ULONG, struct HTMLview_LoadMsg* lmsg)
{
case HTMLview_Open:
{
STRPTR file = lmsg->lm_Params.lm_Open.URL+7;
STRPTR url = lmsg->lm_Params.lm_Open.URL;
STRPTR file = url;
if(!strncmp(url, "file://", 7))
file = url + 7;
APTR result = lmsg->lm_Userdata = (APTR)Open(file, MODE_OLDFILE);
return((ULONG)result);
}
Expand Down
7 changes: 6 additions & 1 deletion mcc/IM_Render.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ RenderEngine::RenderEngine (struct Screen *scr, struct DecoderData *data)
TmpRP.Layer = NULL;
TmpRP.BitMap = NULL;
InitRastPort(&BMpRP);
/* AllocateFrame() uses `first = FirstFrame ? FALSE : TRUE` to detect the
initial frame and then calls StatusItem->Start(). The LastFrame self-ref
trick only works if FirstFrame starts as NULL — stack-allocated
RenderEngine instances would otherwise see garbage here. */
FirstFrame = NULL;
LastFrame = (struct PictureFrame *)&FirstFrame;
}

Expand Down Expand Up @@ -171,7 +176,7 @@ BOOL RenderEngine::AllocateFrame (ULONG width, ULONG height, ULONG animdelay, UL
goto error;
}

if(first)
if(first && Data->StatusItem)
Data->StatusItem->Start(FirstFrame);

LastFrame = LastFrame->Next;
Expand Down
Loading