src/video/fbcon/SDL_fbelo.c
changeset 1259 36f24cdfcda7
parent 769 b8d311d90021
child 1312 c9b51268668f
--- a/src/video/fbcon/SDL_fbelo.c	Fri Jan 20 13:07:25 2006 +0000
+++ b/src/video/fbcon/SDL_fbelo.c	Tue Jan 24 06:36:43 2006 +0000
@@ -129,7 +129,7 @@
 	int width = ELO_MAX_X - ELO_MIN_X;
 	int height = ELO_MAX_Y - ELO_MIN_Y;
 
-	*dx = (cache_vinfo.xres - (cache_vinfo.xres * (input_x - ELO_MIN_X)) / width);
+	*dx = ((int)cache_vinfo.xres - ((int)cache_vinfo.xres * (input_x - ELO_MIN_X)) / width);
 	*dy = (cache_vinfo.yres * (input_y - ELO_MIN_Y)) / height;
 }