UFO: Alien Invasion Issue Tracker
Please log in to bookmark issues
OPEN  Bug report #5309  -  [SDL2] Fullscreen mode in reduced resolution results in "viewport"
Posted Apr 14, 2014 - updated Apr 16, 2014
Issue details
  • Type of issue
    Bug report
  • Status
  • Assigned to
    Not assigned to anyone
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
  • Posted by
  • Owned by
    Not owned by anyone
  • Estimated time
    Not estimated
  • Category
    Not determined
  • Resolution
    Not determined
  • Priority
    5. Important
  • Reproducability
    Not determined
  • Severity
    Not determined
  • Targetted for
    icon_milestones.png Not determined
  • Complexity
    icon_customdatatype.png Not determined
  • Platform
    icon_customdatatype.png Linux
  • Architecture
    icon_customdatatype.png Not determined
Issue description
Basic info: Git branch ufoai_2.5. Ubuntu 13.10 64-bit, Unity-3D desktop, NVIDIA GTX670 with proprietary driver 331.49.

When UFO:AI runs fullscreen with a lower vid_width/vid_height than the OS default, the video mode changes (the monitor confirms this), but the drawing area seems to remain at the original size, so only part of the game can be seen at a time and moving the mouse allows to pan around. The video mode is not restored on exit.

Please see the attached image: the dashed rectangle is the visible area in its initial position. In case it matters, the actual screenshot is a 2560x1600 image with the area outside the "viewport" black.

Version info:
  1. $ git rev-parse HEAD
  2. 6b33b19aa964a05539f74d189e2aa13e6da81f46
  4. $ lsb_release -d
  5. Description: Ubuntu 13.10
  7. $ uname -a
  8. Linux section9 3.8.0-12-generic #21-Ubuntu SMP Thu Mar 7 19:08:49 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
  10. $ apt-cache show nvidia-331 | grep ^Version
  11. Version: 331.49-0ubuntu1~xedgers13.10.3
Steps to reproduce this issue
  1. ./ufo +set vid_mode -1 +set vid_width 1920 +set vid_height 1200 +set vid_fullscreen 1