[render] Fix some incorrect r_data references

The render plugins have made a bit of a mess of getting at the data and
thus it's a tad confusing how to get at it in different places. Really
needs a proper cleanup :(
This commit is contained in:
Bill Currie 2021-07-10 18:30:46 +09:00
parent 755ef524e4
commit ed606fb670
1 changed files with 3 additions and 3 deletions

View File

@ -182,7 +182,7 @@ SCR_CalcRefdef (void)
R_SetVrect (&vrect, &refdef->vrect, r_data->lineadj);
view_setgeometry (vr_data.scr_view, refdef->vrect.x, refdef->vrect.y,
view_setgeometry (r_data->scr_view, refdef->vrect.x, refdef->vrect.y,
refdef->vrect.width, refdef->vrect.height);
// notify the refresh of the change
@ -265,7 +265,7 @@ SCR_DrawRam (void)
return;
//FIXME view
r_funcs->Draw_Pic (vr_data.scr_view->xpos + 32, vr_data.scr_view->ypos,
r_funcs->Draw_Pic (r_data->scr_view->xpos + 32, r_data->scr_view->ypos,
scr_ram);
}
@ -287,7 +287,7 @@ SCR_DrawTurtle (void)
return;
//FIXME view
r_funcs->Draw_Pic (vr_data.scr_view->xpos, vr_data.scr_view->ypos,
r_funcs->Draw_Pic (r_data->scr_view->xpos, r_data->scr_view->ypos,
scr_turtle);
}