Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 285995 - games-action/extreme-tuxracer-0.5_beta can not start with a resolution less than 800x600
Summary: games-action/extreme-tuxracer-0.5_beta can not start with a resolution less t...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All All
: High normal
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-22 18:30 UTC by Alexander Koryushkin
Modified: 2009-09-23 02:54 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Koryushkin 2009-09-22 18:30:37 UTC
My EeePC-701 LVDS has a maximum resolution of 800x480 and a new version of the game no longer supports it :(
After fix winsys.cpp it works normally, except for a something mainmenu...


Reproducible: Always

Steps to Reproduce:
1. emerge extreme-tuxracer
2. start etracer with low resolution
Actual Results:  
*** etracer error: Couldn't initialize video: No video mode large enough for 800x600 (Resource temporarily unavailable)

Expected Results:  
fun game

diff -ur extreme-tuxracer-0.5beta.orig/src/winsys.cpp extreme-tuxracer-0.5beta/src/winsys.cpp
--- extreme-tuxracer-0.5beta.orig/src/winsys.cpp        2008-11-24 22:23:37.000000000 +0300
+++ extreme-tuxracer-0.5beta/src/winsys.cpp     2009-09-22 21:15:18.000000000 +0400
@@ -139,8 +139,8 @@

     height = getparam_y_resolution();

-    if(width < 800) width = 800;
-    if(height < 600) height = 600;
+    if(width < 640) width = 640;
+    if(height < 480) height = 480;

     if ( ( screen = SDL_SetVideoMode( width, height, bpp, video_flags ) ) ==  NULL ){
        handle_system_error( 1, "Couldn't initialize video: %s",
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2009-09-23 02:54:02 UTC
You'll have to take it up with upstream.  There's an explicit commit at http://extremetuxracer.svn.sourceforge.net/viewvc/extremetuxracer/trunk/extreme-tuxracer/src/winsys.cpp?view=log that clamps the resolution to 800x600 so I'm not inclined to change it for just the gentoo package.

Marking it WONTFIX for now but please do reopen if upstream changes it in their repo.