vid: constify source bitmap for D_BeginDirectRect

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
Kevin Shanahan 2012-12-22 16:14:59 +10:30
parent 825410fd21
commit f09d13d07a
8 changed files with 10 additions and 9 deletions

View File

@ -113,7 +113,7 @@ qboolean isPermedia = false;
/*-----------------------------------------------------------------------*/
void
D_BeginDirectRect(int x, int y, byte *pbitmap, int width, int height)
D_BeginDirectRect(int x, int y, const byte *pbitmap, int width, int height)
{
// direct drawing of the "accessing disk" icon isn't supported under GLX
}

View File

@ -76,7 +76,7 @@ D_BeginDirectRect
================
*/
void
D_BeginDirectRect(int x, int y, byte *pbitmap, int width, int height)
D_BeginDirectRect(int x, int y, const byte *pbitmap, int width, int height)
{
}

View File

@ -1112,10 +1112,10 @@ VID_Update(vrect_t *rects)
}
void
D_BeginDirectRect(int x, int y, byte *pbitmap, int width, int height)
D_BeginDirectRect(int x, int y, const byte *pbitmap, int width, int height)
{
int err, i;
byte *src;
const byte *src;
unsigned *dst;
int pitch;
SDL_Rect subrect;

View File

@ -58,7 +58,7 @@ qboolean gl_mtexable;
cvar_t gl_ztrick = { "gl_ztrick", "1" };
void VID_Update(vrect_t *rects) {}
void D_BeginDirectRect(int x, int y, byte *pbitmap, int width, int height) {}
void D_BeginDirectRect(int x, int y, const byte *pbitmap, int width, int height) {}
void D_EndDirectRect(int x, int y, int width, int height) {}
/*

View File

@ -217,7 +217,7 @@ VID_ForceUnlockedAndReturnState(void)
}
void
D_BeginDirectRect(int x, int y, byte *pbitmap, int width, int height)
D_BeginDirectRect(int x, int y, const byte *pbitmap, int width, int height)
{
}

View File

@ -2266,7 +2266,7 @@ D_BeginDirectRect
================
*/
void
D_BeginDirectRect(int x, int y, byte *pbitmap, int width, int height)
D_BeginDirectRect(int x, int y, const byte *pbitmap, int width, int height)
{
int i, j, reps, repshift;
vrect_t rect;

View File

@ -1166,7 +1166,7 @@ Sys_SendKeyEvents(void)
}
void
D_BeginDirectRect(int x, int y, byte *pbitmap, int width, int height)
D_BeginDirectRect(int x, int y, const byte *pbitmap, int width, int height)
{
// direct drawing of the "accessing disk" icon isn't supported under Linux
}

View File

@ -152,7 +152,8 @@ extern vec3_t r_pright, r_pup, r_ppn;
void D_Aff8Patch(void *pcolormap);
void D_BeginDirectRect(int x, int y, byte *pbitmap, int width, int height);
void D_BeginDirectRect(int x, int y, const byte *pbitmap, int width,
int height);
void D_DisableBackBufferAccess(void);
void D_EndDirectRect(int x, int y, int width, int height);
void D_PolysetDraw(void);