render: mark input vrect const in R_SetVrect

Also, fix the argument names in the header file - an invitation for errors!

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
Kevin Shanahan 2012-12-17 13:40:58 +10:30
parent f9a17a97a6
commit b2afdc3b59
2 changed files with 2 additions and 2 deletions

View File

@ -349,7 +349,7 @@ R_SetVrect
===============
*/
void
R_SetVrect(vrect_t *pvrectin, vrect_t *pvrect, int lineadj)
R_SetVrect(const vrect_t *pvrectin, vrect_t *pvrect, int lineadj)
{
int h;
float size;

View File

@ -204,6 +204,6 @@ int D_SurfaceCacheForRes(int width, int height);
void D_FlushCaches(void);
void D_DeleteSurfaceCache(void);
void D_InitCaches(void *buffer, int size);
void R_SetVrect(vrect_t *pvrect, vrect_t *pvrectin, int lineadj);
void R_SetVrect(const vrect_t *pvrectin, vrect_t *pvrect, int lineadj);
#endif /* RENDER_H */