Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 296539 | Differences between
and this patch

Collapse All | Expand All

(-)a/drivers/video/uvesafb.c (-1 / +2 lines)
Lines 317-323 static void uvesafb_setup_var(struct fb_var_screeninfo *var, Link Here
317
static int uvesafb_vbe_find_mode(struct uvesafb_par *par,
317
static int uvesafb_vbe_find_mode(struct uvesafb_par *par,
318
		int xres, int yres, int depth, unsigned char flags)
318
		int xres, int yres, int depth, unsigned char flags)
319
{
319
{
320
	int i, match = -1, h = 0, d = 0x7fffffff;
320
	int i, match = -1;
321
	unsigned int h = 0, d = UINT_MAX;
321
322
322
	for (i = 0; i < par->vbe_modes_cnt; i++) {
323
	for (i = 0; i < par->vbe_modes_cnt; i++) {
323
		h = abs(par->vbe_modes[i].x_res - xres) +
324
		h = abs(par->vbe_modes[i].x_res - xres) +

Return to bug 296539