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

Collapse All | Expand All

(-)xrick-021212/src/sysvid.c (-3 / +7 lines)
Lines 145-154 Link Here
145
    IFDEBUG_VIDEO(sys_printf("xrick/video: SDL says, use these modes:\n"););
145
    IFDEBUG_VIDEO(sys_printf("xrick/video: SDL says, use these modes:\n"););
146
    for (i = 0; modes[i]; i++) {
146
    for (i = 0; modes[i]; i++) {
147
      IFDEBUG_VIDEO(sys_printf("  %dx%d\n", modes[i]->w, modes[i]->h););
147
      IFDEBUG_VIDEO(sys_printf("  %dx%d\n", modes[i]->w, modes[i]->h););
148
      if (modes[i]->w <= modes[mode]->w && modes[i]->w >= SYSVID_WIDTH &&
148
      if ((!fszoom && modes[i]->w <= modes[mode] &&
149
	  modes[i]->h * SYSVID_WIDTH >= modes[i]->w * SYSVID_HEIGHT) {
149
	   modes[i]->w >= SYSVID_WIDTH) ||
150
	  (fszoom && modes[i]->w > modes[mode]->w)) {
150
	mode = i;
151
	mode = i;
151
	fszoom = modes[mode]->w / SYSVID_WIDTH;
152
	if (modes[i]->h * SYSVID_WIDTH >= modes[i]->w * SYSVID_HEIGHT)
153
	  fszoom = modes[mode]->w / SYSVID_WIDTH;
154
	else
155
	  fszoom = modes[mode]->h / SYSVID_HEIGHT;
152
      }
156
      }
153
    }
157
    }
154
    if (fszoom != 0) {
158
    if (fszoom != 0) {

Return to bug 351672