Project

General

Profile

Bug #987

[Linux/FreeBSD] Initial screen displayed incorrectly

Added by vvv1 over 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
2012-03-01
% Done:

100%


Description

Initial screen (spinning wheel on black background) displayed incorrectly if screen resolution more than 640x480. It looks like 640x480 picture placed in the left bottom corner of screen.

How to repeat:
Start doomsday in high resolution:
doomsday -wh 1280 1024 -g ...

Tested versions:
1.9.0 beta6.9
1.9.7 build 364
1.9.7 stable

The problem occurs on 2 computers:
1. Linux (Fedora 16), VGA - nVidia GF9600GT with nVidia driver version 290.10.
2. FreeBSD 9.0, VGA - nVidia GF7600GS with nVidia driver version 285.05.09.

There is NO such problem on WindowsXP professional SP2.

Labels: Graphics

History

#1 Updated by skyjake over 10 years ago

May be affected by the changes in the "qapp-based" branch.

#2 Updated by vvv1 over 10 years ago

The problem appears due to double SDL_SetVideoMode. First SDL_SetVideoMode is called from createMainWindow() in doomsday/engine/(unix|win32|...)/src/dd_uinit.c and sets 640x480 windowed mode. Second SDL_SetVideoMode is called from doomsday/engine/portable/src/dd_main.c after command line parsing and sets required resolution, fullscreen or windowed. Viewport by default is set to 0,0 640x480 by the first SDL_SetVideoMode and stays unchanged after second call. The attached patch sets glViewport according to current resolution just after SDL_SetVideoMode.

Offtopic:
It isn't good idea to set video mode twice. It will be enough to set it once after command line parsing.

#4 Updated by skyjake over 10 years ago

Thanks for the analysis and patch, but I'm not going to apply it for the time being. SDL window management has already been completely replaced in a work branch and this is a relatively minor visual glitch...

Also available in: Atom PDF