src/video/fbcon/SDL_fbelo.c
changeset 1259 36f24cdfcda7
parent 769 b8d311d90021
child 1312 c9b51268668f
equal deleted inserted replaced
1258:b2283b0ded26 1259:36f24cdfcda7
   127 	int input_x = *dx;
   127 	int input_x = *dx;
   128 	int input_y = *dy;
   128 	int input_y = *dy;
   129 	int width = ELO_MAX_X - ELO_MIN_X;
   129 	int width = ELO_MAX_X - ELO_MIN_X;
   130 	int height = ELO_MAX_Y - ELO_MIN_Y;
   130 	int height = ELO_MAX_Y - ELO_MIN_Y;
   131 
   131 
   132 	*dx = (cache_vinfo.xres - (cache_vinfo.xres * (input_x - ELO_MIN_X)) / width);
   132 	*dx = ((int)cache_vinfo.xres - ((int)cache_vinfo.xres * (input_x - ELO_MIN_X)) / width);
   133 	*dy = (cache_vinfo.yres * (input_y - ELO_MIN_Y)) / height;
   133 	*dy = (cache_vinfo.yres * (input_y - ELO_MIN_Y)) / height;
   134 }
   134 }
   135 
   135 
   136 
   136 
   137 /*	eloGetPacket
   137 /*	eloGetPacket