Skip to content

Commit 2a472e6

Browse files
committed
Fix VC6 build.
1 parent a06c4c8 commit 2a472e6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sdl/sdl_hal.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,6 @@ int init_display(ui_context * ctx)
639639
void chg_video_conf(ui_context * ctx)
640640
{
641641
font_type * font;
642-
int i;
643642

644643
font = font_list[ctx->font_id];
645644

@@ -760,7 +759,7 @@ void print_char(ui_context * ctx, unsigned char c, int mode)
760759
}
761760
else
762761
{
763-
ctx->vid_mem_ptr += font->char_x_size;
762+
(unsigned char*)ctx->vid_mem_ptr += font->char_x_size;
764763
}
765764
}
766765

@@ -778,7 +777,8 @@ void clear_line(ui_context * ctx,int line,int mode)
778777

779778
void invert_line(ui_context * ctx, int line)
780779
{
781-
int i,j;
780+
int i;
781+
unsigned int j;
782782
unsigned char *ptr_dst;
783783
int ptroffset;
784784
font_type * font;

0 commit comments

Comments
 (0)