GetDisplayModes and OpenDisplay and Windows
Posted: Sat Sep 26, 2015 12:41 am
I try to open a display on its own screen in native resolution. My approach: get Displaymodes with getdisplaymodes and open a display with the values of the last item of the list returned by getdisplaymodes. This works on my MorphOS machines, on my WindowsXP setup, but it fails on my Win 10 setup.
Unfortunately I have no clue what the problem my be, as the error message just reports that opendisplay() at line 103 fails.
Anyone an idea what might be the issue here. Or does anyone know a way forcing Hollywood to open a screen with the native resolution? Fakefullscreen does not help here, as it covers the underlying screen to much. I.e. when clicking on some openurl function within the hollywood application the browser does not get shown. Hence I guess I need a real full screen and that screen should be opened in native resolution.
I tried the above with getmonitors() instead of GetDisplayModes(), but it's the same on MorphOS and XP it works, on Win10 it fails.
Unfortunately I have no clue what the problem my be, as the error message just reports that opendisplay() at line 103 fails.
Anyone an idea what might be the issue here. Or does anyone know a way forcing Hollywood to open a screen with the native resolution? Fakefullscreen does not help here, as it covers the underlying screen to much. I.e. when clicking on some openurl function within the hollywood application the browser does not get shown. Hence I guess I need a real full screen and that screen should be opened in native resolution.
Code: Select all
(...)
t = GetDisplayModes()
For Local k = 0 To ListItems(t) - 1
; DebugPrint("Mode", k + 1, "Width:", t[k].Width, "Height:", t[k].Height)
Next
CreateDisplay (2, { Title = "bla", width=800, height=600, hidden=True, mode="fullscreen",
Width = t[ListItems(t)-1].Width, Height = t[ListItems(t)-1].Height, Color= #WHITE })
(...)
Opendisplay(2) ; My Windows 10 setup does fail here, XP does eat it, MorphOS, too
(...)