LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-07-2004, 02:48 AM   #1
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
howto change resolution in X so in wine games are fullscreen?


hello, since i installed wine and got starcraft to work, theres been really 2 main issues i have with it:

1) is there a way to get fullscreen apps to run in fullscreen mode?, because in starcraft when ever i try to move around (which requires you bring your mouse to the far end of the screen) the screen moves so that i see X as well as the game (the game takes up 25% of the total screen space, but you can only see 25% at a time)

so is there a way to make so the resolution changes, and i don't get screen bigger then the actually screen? (and i thought i told the X config to not make screens bigger then the actually display size to!)

and just wondering: is there a way to get colors in games like those found on windows (i must admit the brighter colors makes some things better, but I'm wondering if i can change it back if i wanted to, not that this is really that important)
 
Old 07-07-2004, 10:49 AM   #2
kinasz
Member
 
Registered: Mar 2004
Location: Brisbane, Australia
Distribution: FreeBSD, Suse
Posts: 103

Rep: Reputation: 15
In /etc/X11/XF86Config change:

SubSection "Display"
Depth 24
Modes "1024x768" "800x600" "640x480"
EndSubSection

To this:

SubSection "Display"
Depth 24
Modes "1024x768" "800x600" "640x480"
ViewPort 640 480
EndSubSection

That is the only way I know to do this, you could possibly write a script to change the file each time you need it, maybe:

#!/bin/bash
mv /etc/XF86Config.starcraft /etc/XF86Config

and another one to restore

#!/bin/bash
mv /etc/XF86Config.backup /etc/XF86Config

I am not sure if you will have to restart X each time you make these changes ( I suspect you will ) but I am sure you can get the script to do this and then run starcraft for you as well. Then after starcraft has finished change everything back.

#!/bin/bash
mv /etc/XF86Config.starcraft /etc/XF86Config
startx
/usr/local/starcraft/start # or whatever
mv /etc/XF86Config.backup /etc/XF86Config
# whatever the command is to kill the x server here

then cmod it with : chmod a+x script name. That might work when x isnt running. This is just a guide to something that might work, you will have to play with it yourself a bit.
 
Old 07-07-2004, 04:23 PM   #3
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Original Poster
Rep: Reputation: 51
it doesn't do anything for some reason, even with a server restart and such

is there a program that can change the actually resolution in X without a server restart? (ctrl alt (-+) ) only zooms in / out according to the XF86Config-4 file
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
howto change screen resolution in TWM? minike Linux - Software 2 07-10-2005 06:32 AM
Games in linux (Newbie) Cedega/Wine HOWTO and confused koodoo Linux - Games 16 03-12-2005 08:13 AM
Cannot change resolution in games Avenger Linux - Games 2 09-23-2004 12:10 PM
howto: change resolution psa Linux - Newbie 7 08-24-2004 05:16 AM
Startup screen resolution change | howto? the_gripmaster Red Hat 3 07-07-2004 07:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration