# \[Linux\] Viewport not filling entire screen in Fullscreen mode if non-native Resolution

**URL:** <https://forums.unrealengine.com/t/linux-viewport-not-filling-entire-screen-in-fullscreen-mode-if-non-native-resolution/328505>\
**Category:** Platform & Builds\
**Tags:** viewport, Linux, unreal-engine, bug-report, fullscreen, question\
**Created:** [August 13, 2015, 4:08am UTC](https://forums.unrealengine.com/t/linux-viewport-not-filling-entire-screen-in-fullscreen-mode-if-non-native-resolution/328505 "2015-08-13T04:08:25Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![FacePalm.exe](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/facepalm.exe/32/943016_2.png) [@FacePalm.exe](https://forums.unrealengine.com/u/FacePalm.exe)\
**Post date:** [August 13, 2015, 4:08am UTC](https://forums.unrealengine.com/t/linux-viewport-not-filling-entire-screen-in-fullscreen-mode-if-non-native-resolution/328505/1 "2015-08-13T04:08:25Z")

</div>

Hey guys,

Currently in the standalone executable if I set the window to full-screen mode with a non-native resolution, (e.g. “r.SetRes 1024x768f” on a 1920x1080 monitor) the viewport only fills the screen of the set resolution instead of stretching to cover the entire screen. (i.e. it always keeps a 1:1 ratio of viewport to set Resolution.)

Is this the intended behavior? or should (like in windows) the Viewport stretch to cover the screen?

I’m currently running the game on Ubuntu 14.04 LTS, and I am also seeing this issue on SteamOS.

Cheers.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [August 13, 2015, 5:35pm UTC](https://forums.unrealengine.com/t/linux-viewport-not-filling-entire-screen-in-fullscreen-mode-if-non-native-resolution/328505/2 "2015-08-13T17:35:28Z")

</div>

Hey -

I was able to reproduce this and have entered a bug report for investigation (UE-19996).

Cheers

---

<div class="post-metadata">

**Author:** ![rXp](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rXp](https://forums.unrealengine.com/u/rXp)\
**Post date:** [August 24, 2015, 8:31am UTC](https://forums.unrealengine.com/t/linux-viewport-not-filling-entire-screen-in-fullscreen-mode-if-non-native-resolution/328505/3 "2015-08-24T08:31:54Z")

</div>

Hi, I also have this issue on Windows 10 64b pro

---

<div class="post-metadata">

**Author:** ![StrangerGwenn](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/strangergwenn/32/983202_2.png) [@StrangerGwenn](https://forums.unrealengine.com/u/StrangerGwenn)\
**Post date:** [June 9, 2016, 7:19pm UTC](https://forums.unrealengine.com/t/linux-viewport-not-filling-entire-screen-in-fullscreen-mode-if-non-native-resolution/328505/4 "2016-06-09T19:19:12Z")

</div>

Is there a timeline for a fix ?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [June 10, 2016, 1:29pm UTC](https://forums.unrealengine.com/t/linux-viewport-not-filling-entire-screen-in-fullscreen-mode-if-non-native-resolution/328505/5 "2016-06-10T13:29:22Z")

</div>

Hey -

I’ve looked into the reported bug and saw that it is still under active assessment by our development staff. Unfortunately there is currently no timeframe for when a fix will be released.

Cheers

---

<div class="post-metadata">

**Author:** ![FacePalm.exe](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/facepalm.exe/32/943016_2.png) [@FacePalm.exe](https://forums.unrealengine.com/u/FacePalm.exe)\
**Post date:** [June 13, 2016, 11:25pm UTC](https://forums.unrealengine.com/t/linux-viewport-not-filling-entire-screen-in-fullscreen-mode-if-non-native-resolution/328505/6 "2016-06-13T23:25:16Z")

</div>

Hey ,

We’re still waiting on this as well to ship a linux version of our shipped title.

Is this a “We’ll get to it when we get to it” type of bug? i.e. It’s probably never going to be fixed unless someone else does it?

Cheers.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [June 15, 2016, 12:51pm UTC](https://forums.unrealengine.com/t/linux-viewport-not-filling-entire-screen-in-fullscreen-mode-if-non-native-resolution/328505/7 "2016-06-15T12:51:01Z")

</div>

Hey -

We have increased the priority of the issue with a target of fixing it for the 4.13 release. If you are still seeing this issue after the release of 4.13 let us know and we will re-investigate.

---

<div class="post-metadata">

**Author:** ![RCL](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RCL](https://forums.unrealengine.com/u/RCL)\
**Post date:** [August 25, 2016, 6:05pm UTC](https://forums.unrealengine.com/t/linux-viewport-not-filling-entire-screen-in-fullscreen-mode-if-non-native-resolution/328505/8 "2016-08-25T18:05:14Z")

</div>

4.13 contains a fix for this, which makes Fullscreen fully identical to WindowedFullscreen: [https://github.com/EpicGames/UnrealEngine/commit/5fe44a6d9626239723fd306b25fb6843708d7348](https://github.com/EpicGames/UnrealEngine/commit/5fe44a6d9626239723fd306b25fb6843708d7348)

With that fix, you should not experience window not being stretched, however, your game’s resolution in fullscreen will always match desktop resolution.

If that is not desired, there are two ways:  
a) Set r.ScreenPercentage to a smaller value whenever fullscreen mode is enabled  
b) Undo the abovementioned fix and change LinuxWindow.cpp to switch to real fullscreen, and not windowed one.

I advise against the latter, since we had a lot of problems with that approach due to limitations of Linux graphics stack, e.g. resolution will not be switched back if the game crashes or on resolution change you can end up with unusable machine that will require restart of X.
