mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-19 08:51:59 +00:00
changed int to an unsigned int
This commit is contained in:
parent
db71398238
commit
1c26723864
4 changed files with 6 additions and 6 deletions
|
@ -35,7 +35,7 @@ extern qpic_t *draw_disc; // also used on sbar
|
|||
|
||||
void Draw_Init (void);
|
||||
void Draw_Init_Cvars (void);
|
||||
void Draw_Character (int x, int y, int num);
|
||||
void Draw_Character (int x, int y, unsigned int num);
|
||||
void Draw_Pic (int x, int y, qpic_t *pic);
|
||||
void Draw_SubPic(int x, int y, qpic_t *pic, int srcx, int srcy, int width, int height);
|
||||
void Draw_TextBox (int x, int y, int width, int lines, byte alpha);
|
||||
|
|
|
@ -282,18 +282,18 @@ Draw_Init (void)
|
|||
smoothly scrolled off.
|
||||
*/
|
||||
void
|
||||
Draw_Character (int x, int y, int num)
|
||||
Draw_Character (int x, int y, unsigned int num)
|
||||
{
|
||||
float frow, fcol;
|
||||
|
||||
if (num == 32)
|
||||
return; // space
|
||||
|
||||
num &= 255;
|
||||
|
||||
if (y <= -8)
|
||||
return; // totally off screen
|
||||
|
||||
num &= 255;
|
||||
|
||||
frow = (num >> 4) * CELL_SIZE;
|
||||
fcol = (num & 15) * CELL_SIZE;
|
||||
|
||||
|
|
|
@ -199,7 +199,7 @@ Draw_Init (void)
|
|||
smoothly scrolled off.
|
||||
*/
|
||||
void
|
||||
Draw_Character (int x, int y, int num)
|
||||
Draw_Character (int x, int y, unsigned int num)
|
||||
{
|
||||
byte *dest;
|
||||
byte *source;
|
||||
|
|
|
@ -199,7 +199,7 @@ Draw_Init (void)
|
|||
smoothly scrolled off.
|
||||
*/
|
||||
void
|
||||
Draw_Character (int x, int y, int num)
|
||||
Draw_Character (int x, int y, unsigned int num)
|
||||
{
|
||||
byte *source;
|
||||
int drawline;
|
||||
|
|
Loading…
Reference in a new issue