1600x900 displaying incorrectly on a 16:9 monitor

Started by Ali, Fri 08/06/2018 14:03:53

Previous topic - Next topic

Ali

Hello,

When I run my 1920x1080 game at 1600x900 resolution, it should look like the image on the left. But it's actually displaying distorted, with black bars at the top and bottom - like the image on the right.
My monitor is 16:9, so there's no reason I can see for the bars. I'm using AGS 3.4.0



Can anyone help?

Crimson Wizard

Well, it's not the monitor, but the display mode that matters here.
Can you press Ctrl + V (or Ctrl + Alt + V) in game and see what mode it shows?
Also, I do not remember, what is the native size of the game?

Ali

Then native resolution is 1920x1080. When I Ctrl-V, it says it's running at 1600x900. When I Printscreen, I get a 1600x900 image:



But it doesn't display correctly. Needless to say, other games do run at 1600x900 correctly.

Crimson Wizard

Oh right, sorry, I somehow missed your game size in the first post.

Hmmmm, so you are saying that the screenshot is of correct size, but the way its displayed on screen is wrong? This may mean that the renderer's drawing is correct, but something happens when image gets on screen.

Turning log on may give some information and either prove or refute that (how to enable logging is explained here).

What is this Nvidia GeForce overlay notifications, could it be that some Nvidia settings cause this?

Ali

The tag in the corner is from a Nvidia program I use for screen-capturing gameplay. It runs whenever I launch a game, and it doesn't interfere with any other games. Here's what the log says:

Adventure Game Studio v3.4 Interpreter
Copyright (c) 1999-2011 Chris Jones and 2011-2017 others
ACI version 3.4.0.16

Installing exception handler
Initializing allegro
Reading configuration
Looking for game data file
Game data file: d:/Users/ABK/Documents/Nelly Cootalot HD/AGS Project/Nelly HD/Compiled/Windows/Nelly HD.exe

Game data version: 47
Requested engine version: 3.4.0.16
Setting up window
Initializing TTF renderer
Initializing mouse: number of buttons reported is 8
Checking memory
Initializing speech vox
Speech sample file found and initialized.
Initializing audio vox
Audio vox found and initialized.
Initializing keyboard
Install timer
Initialize sound drivers
Trying digital driver ID: 'AXA ' (0x41584120), MIDI driver ID: 'Auto' (0xffffffff)
Installed digital driver ID: 'AXA ' (0x41584120), MIDI driver ID: 'W32M' (0x5733324d)
Install exit handler
Initialize path finder library
Load game data
Game data version: 47
Requested engine version: 3.4.0.16
Game GUI version: 118
Nelly Cootalot Spoonbeaks Ahoy
Checking for disk space
Initializing MOD/XM player
Initializing resolution settings
Game native resolution: 1920 x 1080 (32 bit)
Device display resolution: 1920 x 1080
Game settings: windowed = no, screen def: explicit, screen size: 1600 x 900, match device ratio: ignore, game scale: proportional
Built library path: d3d9.dll
Using graphics factory: D3D9
Created graphics driver: Direct3D 9
Supported gfx modes (32-bit):
   640x480;640x480;640x480;640x480;720x480;720x480;720x576;800x600;
   800x600;800x600;800x600;1024x768;1024x768;1024x768;1152x864;1176x664;
   1176x664;1176x664;1280x720;1280x720;1280x720;1280x768;1280x800;1280x960;
   1280x1024;1280x1024;1360x768;1366x768;1600x900;1600x900;1600x1024;1600x1024;
   1680x1050;1680x1050;1768x992;1768x992;1768x992;1920x1080;1920x1080;1920x1080;
   1920x1080;1920x1080;1920x1080;1440x900;
Supported gfx modes (24-bit): none
Requested gfx filter: Linear
Using gfx filter: Linear
Switching to graphics mode
Attempting to find nearest supported resolution for screen size 1600 x 900 (32-bit) fullscreen
Attempt to switch gfx mode to 1600 x 900 (32-bit) fullscreen; game frame: 1600 x 900
D3DGraphicsDriver: InitializeD3DState()
Succeeded. Using gfx mode 1600 x 900 (32-bit) fullscreen
   filter dest (0, 0, 1599, 899 : 1600 x 900), render dest (0, 0, 1599, 899 : 1600 x 900)
Preparing graphics mode screen
Initializing colour conversion
Mouse control: on, base: 0.833333, speed: 1.000000
Check for preload image
Initialize sprites
Set up screen
Initialize game settings
Cannot open translation: default.tra
Prepare to start game
Mouse confined: (0,0)-(1599,899) (1600x900)
Audio is processed on the main thread
Checking replay status
Engine initialization complete
Starting game
WARNING: Not all of the Direct3D resources have been disposed; ID3D ref count: 1
***** ENGINE HAS SHUTDOWN

Crimson Wizard

#5
Well, I do not know what is going on there. AGS definitely thinks it runs 1600 x 900 fullscreen, stretching game to all 1600 x 900.

Does the same happen if you run it with Software renderer?

I will try making a test game of same size to see how it works, but it looks rather some weird gfx card behavior.

Ali

1600x900 isn't available from the drop-down when I select Direct Draw 5, but when I enter it into the .cfg file manually the same problem occurs. I've noticed that I can move the mouse cursor over the top of the black bar at the bottom, but not at the top.

It sounds like it is something to do with my graphics card (Nvidia 1060). But since that's the most common graphics card among steam users, I'd really love to get to the bottom of the problem. Please let me know if you have any thoughts!

SMF spam blocked by CleanTalk