diff options
Diffstat (limited to 'games-arcade/xrick/files/xrick-021212-fullscreen.patch')
-rw-r--r-- | games-arcade/xrick/files/xrick-021212-fullscreen.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/games-arcade/xrick/files/xrick-021212-fullscreen.patch b/games-arcade/xrick/files/xrick-021212-fullscreen.patch new file mode 100644 index 000000000000..97271a33a28e --- /dev/null +++ b/games-arcade/xrick/files/xrick-021212-fullscreen.patch @@ -0,0 +1,21 @@ +diff -ur xrick-021212/src/sysvid.c xrick-021212.patched/src/sysvid.c +--- xrick-021212/src/sysvid.c 2002-12-24 16:33:43.000000000 +0300 ++++ xrick-021212.patched/src/sysvid.c 2011-01-14 03:03:16.636668016 +0300 +@@ -145,10 +145,14 @@ + IFDEBUG_VIDEO(sys_printf("xrick/video: SDL says, use these modes:\n");); + for (i = 0; modes[i]; i++) { + IFDEBUG_VIDEO(sys_printf(" %dx%d\n", modes[i]->w, modes[i]->h);); +- if (modes[i]->w <= modes[mode]->w && modes[i]->w >= SYSVID_WIDTH && +- modes[i]->h * SYSVID_WIDTH >= modes[i]->w * SYSVID_HEIGHT) { ++ if ((!fszoom && modes[i]->w <= modes[mode] && ++ modes[i]->w >= SYSVID_WIDTH) || ++ (fszoom && modes[i]->w > modes[mode]->w)) { + mode = i; +- fszoom = modes[mode]->w / SYSVID_WIDTH; ++ if (modes[i]->h * SYSVID_WIDTH >= modes[i]->w * SYSVID_HEIGHT) ++ fszoom = modes[mode]->w / SYSVID_WIDTH; ++ else ++ fszoom = modes[mode]->h / SYSVID_HEIGHT; + } + } + if (fszoom != 0) { |