Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 259868 Details for
Bug 351672
games-arcade/xrick: fix joystick usage and and fullscreen behavior
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fixes incorrect fullscreen mode when the display aspect ratio is higher than 320/200 = 1.6.
xrick-021212-fullscreen.patch (text/plain), 950 bytes, created by
Vitaly Minko
on 2011-01-14 17:22:34 UTC
(
hide
)
Description:
Fixes incorrect fullscreen mode when the display aspect ratio is higher than 320/200 = 1.6.
Filename:
MIME Type:
Creator:
Vitaly Minko
Created:
2011-01-14 17:22:34 UTC
Size:
950 bytes
patch
obsolete
>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) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 351672
:
259864
|
259866
| 259868