Codechange: Pass Viewport by reference.
This means we do not have to care what type of pointer is used.
This commit is contained in:
committed by
Peter Nelson
parent
70b4beb8e7
commit
8275bbfb87
@@ -117,7 +117,7 @@ static void LargeWorldCallback(void *userdata, void *buf, uint y, uint pitch, ui
|
||||
wx = std::min(vp->width - left, 1600);
|
||||
left += wx;
|
||||
|
||||
ViewportDoDraw(vp,
|
||||
ViewportDoDraw(*vp,
|
||||
ScaleByZoom(left - wx - vp->left, vp->zoom) + vp->virtual_left,
|
||||
ScaleByZoom(y - vp->top, vp->zoom) + vp->virtual_top,
|
||||
ScaleByZoom(left - vp->left, vp->zoom) + vp->virtual_left,
|
||||
|
||||
Reference in New Issue
Block a user