[SOLVED] No Fullscreen? (v3.3.4)

Started by arj0n, Thu 31/12/2015 21:48:53

Previous topic - Next topic

arj0n

I'm wondering why my project isn't able to run in fullscreen.

When running in fullscreen combined with any nearest-neighbour
filter or 'none', it always shows as small as possible.

The best I can get is 'windowed & nearest-neighbour filter'.

Code: ags

Monitor Resolution:

1080p, 1920 x 1080 (native)
============================================================
AGS EDITOR version:

AGS Editor .NET (Build 3.3.4.2)
v3.3.4, July 2015

============================================================
Editor-General settings:

Colour depth: 16-bit (hi-colour)
Default graphics driver: Direct3D 9 hardware acceleration
Enable letterbox mode: false
Resolution: 320 x 200
============================================================
acsetup.cfg settings:

[sound]
digiid=-1
midiid=-1
digiwin=1096302880
midiwin=-1
digiindx=0
midiindx=0
digiwinindx=0
midiwinindx=0
usespeech=1
[misc]
gamecolordepth=16
defaultres=1
screenres=0
letterbox=1
defaultgfxdriver=D3D9
gfxdriver=D3D9
titletext=Treasure Island Setup
windowed=0
prefer_sideborders=0
refresh=0
prefer_letterbox=0
gfxfilter=max
============================================================

Crimson Wizard

Could you put following in your config file:
Quote
[misc]
log=1
run the game and then go to C:/Users/<username>/Saved Games/.ags , find a log file and post its contents here (you may post not all of it, but only lines below "Initializing resolution settings" line)

arj0n

#2
Sure, here's the (partial) log (game setting = fullscreen,max nearest-neighbour filter):

Code: ags

Initializing screen settings
Device display resolution: 1920 x 1080
Game native resolution: 320 x 200 (16 bit)
Game settings: letterbox acceptable, side borders acceptable
Init gfx driver
Built library path: d3d9.dll
Created graphics driver: Direct3D 9
Supported gfx modes (16-bit): none
Supported gfx modes (15-bit): none
Initializing gfx filters
Requested gfx filter: max
Couldn't find any supported uniform scaling for game size 320 x 200 (16 bit)
Applying graphics filter: None
Chosen gfx resolution: 320 x 200 (16 bit), game frame: 320 x 200
Switching to graphics mode
Attempt to switch gfx mode to 320 x 200 (16-bit) fullscreen, game frame 320 x 200, gfx filter: None
Failed, resolution not supported
Attempt to switch gfx mode to 320 x 200 (15-bit) fullscreen, game frame 320 x 200, gfx filter: None
Failed, resolution not supported
Attempt to switch gfx mode to 320 x 200 (16-bit) windowed, game frame 320 x 200, gfx filter: None
Succeeded. Using gfx mode 320 x 200 (16-bit) windowed, game frame 320 x 200, gfx filter: None
Preparing graphics mode screen
Initializing colour conversion
Check for preload image

Khris

Try one of the 4x filters. On my system, the game runs @ 1280 x 800 with black borders on all sides.

Crimson Wizard

The log indicates that your D3D9 driver does not support any 16-bit fullscreen modes...

Quote
Created graphics driver: Direct3D 9
Supported gfx modes (16-bit): none
Supported gfx modes (15-bit): none

The rest is a result of an (somewhat awkward) engine's attempt to run the game anyhow: after realizing it cannot run in fullscreen it it falls back to windowed mode. For some reason it does so only after switching filter to "none", which is a mistake, which I will be fixing.

The solution for your case would be to enable windowed mode in setup when running on that particular computer.

arj0n

#5
Quote from: Khris on Sat 02/01/2016 18:41:55
Try one of the 4x filters. On my system, the game runs @ 1280 x 800 with black borders on all sides.

Thanx, but I tried that already, with no result.
But: the log showed a 16bit problem. So I switched to 32-bit (true-colour) colour depth, recompiled and ran the game again: it now shows properly in full-screen.

Thanx CW and Khris, appreciated.


EDIT:
CW: I noticed your answer after my post:
Quote from: Crimson Wizard on Sat 02/01/2016 18:48:25
The solution for your case would be to enable windowed mode in setup when running on that particular computer.
Mmhh, Ok. But after switching to 32bit it seems to be solved perfectly.

Code: ags

Supported gfx modes (32-bit): 
	640x480;720x480;720x576;800x600;1024x768;1152x720;1152x864;1176x664;
	1280x720;1280x768;1280x800;1280x960;1280x1024;1360x768;1366x768;1440x900;
	1600x900;1600x1024;1600x1200;1680x1050;1768x992;1920x1080;


Code: ags

Chosen gfx resolution: 1920 x 1080 (32 bit), game frame: 384 x 216
Switching to graphics mode
Attempt to switch gfx mode to 1920 x 1080 (32-bit) fullscreen, game frame 384 x 216, gfx filter: StdScale5
Succeeded.


Thanx for looking into this!

SMF spam blocked by CleanTalk