Welcome, Guest. Please login or register.

Author Topic: UAE and whacked out resolutions, or at least multiple desktops in Workbench?  (Read 1885 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline FailureTopic starter

  • Lifetime Member
  • Sr. Member
  • ****
  • Join Date: Jun 2004
  • Posts: 332
    • Show only replies by Failure
    • http://awhitlock.net/
I have a Debian machine running E-UAE under XFree86 4.1.0, using the binary nvidia driver's twinview option to have a 2560x1024 display across two monitors.  I would really like to convince uaegfx/P96 to let me run UAE at that resolution, but when I try to add a new mode using P96mode it resets the value  of 2560 that I entered back to 1280.

I think this might be related to a feature of twinview that makes fullscreen apps use only one display, but I'm not running E-UAE fullscreen, I'm running in a window.  Windows are allowed to span displays including xvideo and 3d-accelerated applications.  Windows can also be maximized to cover both displays.  I don't really understand how uaegfx is getting its info, but if I have to convince the X server that 2560x1024 is a valid mode (ie: outside of twinview) that could be a mite tricky.

Does anybody have any ideas?  I have gotten too used to having tons of space on my desktop to throw windows all over the place.  I'd like to adapt my Amiga environment at least in UAE to the way I like to work.

Failing that, is there anything for Workbench so that I can have something like the multiple desktops in Windowmaker?  :-)  That'll work too.
You can\'t spell evil without "vi"
AMIX Wiki | AmixBP
 

Offline FailureTopic starter

  • Lifetime Member
  • Sr. Member
  • ****
  • Join Date: Jun 2004
  • Posts: 332
    • Show only replies by Failure
    • http://awhitlock.net/
Re: UAE and whacked out resolutions, seems to work ok
« Reply #1 on: April 28, 2005, 03:38:36 AM »
Darn I thought somebody would be able to give me a quick fix :-)

I grepped for "resolution" in the source code files and wound up in sdlgfx.c, I shoved my screenmode (2560x1024) in the static array of modes explicitly tested for, and dug around some more to find where SDL is checking to see if the mode was sane or not.  I disabled that check (of course it's sane!) by commenting the sucker out.

I wonder how many things I broke...but it seems to work flawlessly.  I'm so happy :-)  I had to bump the emulated memory up to get it to run with 32 bit depth, heh.

http://failsure.net/~failure/amiga/uae_whacked_out.jpg

Plenty of space for me to scatter windows as I please!  I setup 2400x960 for use in windowed mode, and 2560x1024 for fullscreen.
You can\'t spell evil without "vi"
AMIX Wiki | AmixBP
 

Offline boing

  • Sr. Member
  • ****
  • Join Date: Apr 2002
  • Posts: 293
    • Show only replies by boing
    • http://www.TribeOfHeart.org
Re: UAE and whacked out resolutions, seems to work ok
« Reply #2 on: April 28, 2005, 05:43:32 AM »
Weird. I posted a reply yesterday and it's not here.

In your Amiga emulator can you set up (for example) a 2048x1536 or 2560x1920 draggable (emulated) screen?  


>I grepped for "resolution" in the source code files and wound up in sdlgfx.c

Is which software?  The nVidea drivers?  The Xfree software?  The emulator?

  Good work BTW... be sure to contribute your enhancement back to... whomever it is.
 

Offline FailureTopic starter

  • Lifetime Member
  • Sr. Member
  • ****
  • Join Date: Jun 2004
  • Posts: 332
    • Show only replies by Failure
    • http://awhitlock.net/
Re: UAE and whacked out resolutions, seems to work ok
« Reply #3 on: April 28, 2005, 03:05:32 PM »
Quote

Is which software?  The nVidea drivers?  The Xfree software?  The emulator?


My bad, the E-UAE sources.  I am working with the last release of 0.8.25, since 0.8.27 seems to require a later version of SDL than I can get in Debian stable.  It's only the joystick code I think, so I'll try taking that from the 0.8.25 tree and see how that works.

Quote

  Good work BTW... be sure to contribute your enhancement back to... whomever it is.


It's just a cheap hack at this point, I would like to add something to the .uaerc config file like "max_resolution_no_really" to allow an unchecked max resolution.  I'll bring it up on the mailing list if it's not an easy addition to make, but I'm not sure how much interest there will be since it's a pretty unusual case (isn't it?).
You can\'t spell evil without "vi"
AMIX Wiki | AmixBP