Skip to content
Snippets Groups Projects
Commit fe319e7f authored by deuce's avatar deuce
Browse files

Fix warnings.

parent 1f232f67
No related branches found
No related tags found
No related merge requests found
...@@ -764,7 +764,6 @@ static void bitmap_draw_cursor(struct video_stats *vs) ...@@ -764,7 +764,6 @@ static void bitmap_draw_cursor(struct video_stats *vs)
char attr; char attr;
int pixel; int pixel;
int xoffset,yoffset; int xoffset,yoffset;
int width;
int yo, xw, yw; int yo, xw, yw;
if(!bitmap_initialized) if(!bitmap_initialized)
...@@ -777,7 +776,6 @@ static void bitmap_draw_cursor(struct video_stats *vs) ...@@ -777,7 +776,6 @@ static void bitmap_draw_cursor(struct video_stats *vs)
if(xoffset < 0 || yoffset < 0) if(xoffset < 0 || yoffset < 0)
return; return;
attr=cio_textinfo.attribute&0x0f; attr=cio_textinfo.attribute&0x0f;
width=vs->charwidth;
pthread_mutex_lock(&screenlock); pthread_mutex_lock(&screenlock);
for(y=vs->curs_start; y<=vs->curs_end; y++) { for(y=vs->curs_start; y<=vs->curs_end; y++) {
...@@ -785,7 +783,7 @@ static void bitmap_draw_cursor(struct video_stats *vs) ...@@ -785,7 +783,7 @@ static void bitmap_draw_cursor(struct video_stats *vs)
pixel=PIXEL_OFFSET(xoffset, yoffset+y); pixel=PIXEL_OFFSET(xoffset, yoffset+y);
for(x=0;x<vs->charwidth;x++) for(x=0;x<vs->charwidth;x++)
screen[pixel++]=attr; screen[pixel++]=attr;
//memset(screen+pixel,attr,width); //memset(screen+pixel,attr,vs->charwidth);
} }
} }
pthread_mutex_unlock(&screenlock); pthread_mutex_unlock(&screenlock);
...@@ -892,7 +890,6 @@ static int update_rect(int sx, int sy, int width, int height, int force) ...@@ -892,7 +890,6 @@ static int update_rect(int sx, int sy, int width, int height, int force)
unsigned int pos; unsigned int pos;
int redraw_cursor=0; int redraw_cursor=0;
int lastcharupdated=0; int lastcharupdated=0;
int fullredraw=0;
static unsigned short *last_vmem=NULL; static unsigned short *last_vmem=NULL;
static unsigned short *this_vmem=NULL; static unsigned short *this_vmem=NULL;
static struct video_stats vs; static struct video_stats vs;
...@@ -907,9 +904,6 @@ static int update_rect(int sx, int sy, int width, int height, int force) ...@@ -907,9 +904,6 @@ static int update_rect(int sx, int sy, int width, int height, int force)
if(!bitmap_initialized) if(!bitmap_initialized)
return(-1); return(-1);
if(sx==0 && sy==0 && width==0 && height==0)
fullredraw=1;
if(sx<=0) if(sx<=0)
sx=1; sx=1;
if(sy<=0) if(sy<=0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment