Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Wine
Reload this Page wine and display scaling
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Wine Discussion about Wine, the Open Source implementation of the Windows API on top of X and Unix.

Reply
 
Thread Tools Display Modes
Old 02-02-2008   #1 (permalink)
scottws
Just Joined!
 
Join Date: Feb 2008
Posts: 3
wine and display scaling

I have a sort of conundrum. I am running Kubuntu 7.10 on a Dell D600 laptop. This laptop has a 4:3 display at some native resolution I don't recall at the moment.

I am trying to run Starcraft through wine. The game runs perfectly fine, but I'm having trouble with the display.

The problem is that my display does not seem to like the low 640x480 resolution, period. I don't know if it's a Linux/Kubuntu 7.10 problem (I have not tested this laptop with any other OS) or just a problem with the display. Basically, if I set the desktop to 640x480 or if a program runs full screen at 640x480, there are two very thick bars running vertically down the left side and just right of the middle of the screen and these bars are either solid black or white, depending. The mouse cursor is even obscured by these bars.

As some may know, Starcraft is a game that runs at a resolution of 640x480 so if I let wine run it fullscreen, I have the two vertical bars problem. I have set wine to run it in a window, and it runs fine there with no issue with the display - except that a 640x480 window is fairly tiny on this screen!

I cannot seem to find a way for wine to scale up the window to a higher resolution like 800x600 at least, or 1024x768. I want to know if there is some way I can make wine run the game in the window, but make the window and its contents larger. Either via the default interface, wine hacks, or some sort of plug-in.

Any help on this would be greatly appreciated.
scottws is offline   Reply With Quote
Old 02-05-2008   #2 (permalink)
sdimhoff
Linux Newbie
 
sdimhoff's Avatar
 
Join Date: Jan 2007
Posts: 115
I just found an answer.

Wine Application DB - Viewing App: Dungeon Keeper 2 1.x

In essence, you can create a new x server, start the wine application at the required resolution. Then use [CTL] [ALT] numberpad [+] or [-] to shift the resolution of that x server to the required resolution.

Here is a short guide to what you need to do:

Ensure that in your xorg.conf file the don't zoom flag is commented, and that you have the resolution that you need tacked onto your screen section:

Code:
Section "ServerFlags"

#    Option "Dont Zoom"

EndSection

###############################

Section "Screen"
    Identifier  "Screen 1"
    Device      "generic"
    Monitor     "ibm"
    DefaultDepth 24

    Subsection "Display"
        Depth       24
        Modes       "1440x900" "1280x1024" "1024x768" "1400x1050" "640x400"
        ViewPort    0 0
        Virtual     0 0
    EndSubsection
EndSection
Now create a little start script, something like this:

Code:
#/!bin/sh
X :3 -ac &
cd /home/path/to/exe/file/
sleep 2
env DISPLAY=:3 wine exec.exe
/usr/bin/kill "X :3"$(ps ax | grep "X :3")
Then once the app is running, use the [CTL] [ALT] numberpad [+] or [-] to get to the right resolution. Now it should be good to go.
__________________
Linux since: 2001
Gentoo since: 2004
- - - - - - - -
Translation:
I fix things until they break.
sdimhoff is offline   Reply With Quote
Old 02-06-2008   #3 (permalink)
scottws
Just Joined!
 
Join Date: Feb 2008
Posts: 3
Does it have to be numberpad + and -? As I mentioned, it's a laptop. There is no numberpad.
scottws is offline   Reply With Quote
Old 02-06-2008   #4 (permalink)
sdimhoff
Linux Newbie
 
sdimhoff's Avatar
 
Join Date: Jan 2007
Posts: 115
Do you have a Fn key or a num-lock key that you can use to turn a portion of your keyboard into the numberpad?

I also realized that below, I left out a part that you probably inferred, but I didn't state explicitly. Make sure that you are starting the wine program in windowed mode at 640x480.
__________________
Linux since: 2001
Gentoo since: 2004
- - - - - - - -
Translation:
I fix things until they break.
sdimhoff is offline   Reply With Quote
Old 02-18-2008   #5 (permalink)
scottws
Just Joined!
 
Join Date: Feb 2008
Posts: 3
Well, I made the script, and I am able to zoom in. But there is a problem. It opens in the upper left corner of the screen. When I do the Ctrl + Alt + + it just zooms in over in the corner, which ends up cutting off most of the screen. It doesn't keep the top and left corners of the window pinned to the edge of the screen.

Thanks for the suggestion though.
scottws is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
couldn't load wine HELP brandog Wine 1 11-10-2007 04:09 PM
wine help Ghosts Mandriva Linux Help 1 02-03-2007 11:48 PM
running anim8or with wine prejudged_fire Wine 0 07-31-2006 03:51 AM
I am wondering if Wine could display Chinese correctly skyfolly Linux Applications 2 07-25-2003 03:33 PM
W00T I got wine to install kazaa lite on slack But now...... pimpetypimp Linux Applications 13 07-07-2003 02:31 AM




All times are GMT. The time now is 10:43 PM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.0.0