Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
marvin944
12
Years of Service
User Offline
Joined: 27th Aug 2013
Location:
Posted: 16th Jun 2014 14:15
Hi everyone!

I'm writing a programm that needs to be on a 2048 x 768 desktop, consisting of two monitors each 1024 x 768. I keep getting an error saying that my setup doesn't support 32-bit screen of this format.

I use this code:

desktopwidth=desktop width()
desktopheight=desktop height()
set display mode desktopwidth,desktopheight,32,1,0,0

and have the config set to fulldesktop

Any solutions?

Dutch
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 16th Jun 2014 15:20 Edited at: 16th Jun 2014 15:23
The error is exactly what it states: A display mode of 2048x768 is not supported.

You could try to get the data from User32. What does the following code output when you run it?



[EDIT] You should check if the display mode is available or not before setting it. For this, you can use the command check display mode.

You can also retrieve a list of available display modes with the command perform checklist for display modes.

marvin944
12
Years of Service
User Offline
Joined: 27th Aug 2013
Location:
Posted: 16th Jun 2014 17:29
it says 1920 x 1080, which is the resolution of my 1st screen.

Dutch
marvin944
12
Years of Service
User Offline
Joined: 27th Aug 2013
Location:
Posted: 16th Jun 2014 17:31
my 2nd screen is also this resolution. My app needs to be split on two outputs (each has a beamer attached)

Dutch
marvin944
12
Years of Service
User Offline
Joined: 27th Aug 2013
Location:
Posted: 16th Jun 2014 18:00
Could be due to the fact my laptop (MSI GT70) has two graphic cards... I will check on a pc with just one and two outputs on that card.

Dutch
Adrian
22
Years of Service
User Offline
Joined: 11th Nov 2003
Location: My Living Room
Posted: 16th Jun 2014 18:20
I've written games that use 3 screens but before I can run them I have to activate Eyefinity mode on my graphics card. This makes the desktop act as one big screen. If you're using an ATI card it should be an option in the Catylist Control Centre.
Set this up first and then your program should detect the larger screen size. I can run at 5760 * 1080 this way

http://www.youtube.com/watch?v=4a7a1YsjNWwhttp://

An example showing 3*1920*1080
marvin944
12
Years of Service
User Offline
Joined: 27th Aug 2013
Location:
Posted: 17th Jun 2014 00:31
That looks amazing! I use Nvidia, but the process will be the same I guess. This will probably only work with DX9 when onecard creates the two screens.

Dutch
Rick the Programmer
22
Years of Service
User Offline
Joined: 23rd Mar 2004
Location: Maryland
Posted: 18th Jun 2014 04:42 Edited at: 18th Jun 2014 04:45
That's awesome, Adrian! Do you have a link with info on how to do that? That kind of display would be AMAZING to use in a 3-monitor display.

As for Marvin's dilemma, you could try using the 1024, 768, 32 display mode and simply resize the window.



Depending on what the end goal of your project is, this could be a solution for you.

Ask not for whom the bell tolls;
It tolls for ye!
Adrian
22
Years of Service
User Offline
Joined: 11th Nov 2003
Location: My Living Room
Posted: 19th Jun 2014 01:08 Edited at: 19th Jun 2014 01:17
Quote: "I use Nvidia, but the process will be the same I guess. "


I don't know but I would imagine so.


Quote: " Do you have a link with info on how to do that"




Un-rem the "sw=" line when in "Eyefinity" mode (or whatever the Nvidia rquivilent is) and this show display one screen across all 3 monitors.


Ultra-wide displays do have a couple of problems though (apart from needing 3 times the processing power).
See this earlier thread to understand the "fog" problem.
http://forum.thegamecreators.com/?m=forum_view&t=182186&b=1

and this one too:
http://forum.thegamecreators.com/?m=forum_view&t=194243&b=1
YouTube link to above game:
https://www.youtube.com/watch?v=wU9uF3NuOb0
Sorry, but I don't know how to embed videos!





Quote: "you could try using the 1024, 768, 32 display mode and simply resize the window"

This won't work for full screen mode though, and your output may look incorrect due to the change in aspect ratio.
This is another problem with wide screen.
It IS amazing to play with a screen this size though, well worth trying to get it to work.
Burning Feet Man
18
Years of Service
User Offline
Joined: 4th Jan 2008
Location: Sydney, Australia
Posted: 25th Jun 2014 13:49 Edited at: 25th Jun 2014 13:59
In my past tinkerings, I've always had my DBPro EXE crash upon having the DBPro window reaching a larger size than the primary monitor resolution. I was actually thinking about this during my lunch break today, as I'd love to see it fixed in the future.

EDIT: Added one of my EXE's where I dabbled with Windows DLL calls for app control, such as the resizing of the window, and dragging and dropping of files into the app. Upon running the app, as soon as you resize the little app window to a larger size of the native resolution (using the right & lower grip to resize, top grip to move), it'll crash. Even crashes whilst using two monitors. I suspect that the eye-finity trick might work OK though.

One obvious trick to stop the crash is to simply limit the maximum size of my app window.

Help build an online DarkBASIC Professional help archive.
DarkBasic Help Wikia
Adrian
22
Years of Service
User Offline
Joined: 11th Nov 2003
Location: My Living Room
Posted: 27th Jun 2014 22:55 Edited at: 27th Jun 2014 22:56
I tried your program and it did indeed crash when I dragged it out onto a second screen.

I went into Eyefinity mode and WAS able to drag it out over all three screens as the attached image shows.

Try This code
and check to see what the variables Sw and Sh are equal to. I think this would be the maximum size you can use. Simply limit your app size to these values and you should be ok when using multiple screens as a single desktop a lá Eyefinity mode.

Hope this helps
Burning Feet Man
18
Years of Service
User Offline
Joined: 4th Jan 2008
Location: Sydney, Australia
Posted: 21st Sep 2014 02:41
Yup, Sw & Sh are the maximum Resolution of my screen. Limiting the app to these sizes will stop crashing, but I'm still curious to know if there's a way to get around this.

Help build an online DarkBASIC Professional help archive.
DarkBasic Help Wikia

Login to post a reply

Server time is: 2026-07-18 02:19:28
Your offset time is: 2026-07-18 02:19:28