# Noob question here - enumerate display modes?

**URL:** <https://forums.unrealengine.com/t/noob-question-here-enumerate-display-modes/3615>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [May 1, 2014, 4:29pm UTC](https://forums.unrealengine.com/t/noob-question-here-enumerate-display-modes/3615 "2014-05-01T16:29:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![VegasRich](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VegasRich](https://forums.unrealengine.com/u/VegasRich)\
**Post date:** [May 1, 2014, 4:29pm UTC](https://forums.unrealengine.com/t/noob-question-here-enumerate-display-modes/3615/1 "2014-05-01T16:29:03Z")

</div>

Sorry for cross-posting - I posted in [the Community Content forum](https://forums.unrealengine.com/showthread.php?3988-Noob-question-here-enumerate-display-modes) first, believing that this is a basic game configuration task and not actually “gameplay.” If a moderator would kindly straighten this out that would be nice.

Anyway…

I’m looking to populate the display resolution list in the shooter game options menu with something more than a short list of hand-selected modes. I spent about 45 minutes wandering through the documentation and didn’t see any way to enumerate the display adapter’s available display modes.

And now that I’m thinking about it - enumerating available sound devices would be nice, too…

I know how to get DirectX to give me the information I want - and I could always look up how to get it on other operating systems. I was just looking for an API call that would cover this.

Thanks for your time!  
Rich

---

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [May 1, 2014, 4:49pm UTC](https://forums.unrealengine.com/t/noob-question-here-enumerate-display-modes/3615/2 "2014-05-01T16:49:43Z")

</div>

**CoreMisc.h**

```auto

/** Helper function to generate a set of windowed resolutions which are convenient for the current primary display size */
void CORE_API GenerateConvenientWindowedResolutions(const struct FDisplayMetrics& InDisplayMetrics, TArray<FIntPoint>& OutResolutions);
_
_

```

Great question!

````auto

**Get Current Screen Resolution**

```

FIntPoint Res = GEngine->GameUserSettings->GetScreenResolution(); 

```

:)

Rama
````

---

<div class="post-metadata">

**Author:** ![VegasRich](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VegasRich](https://forums.unrealengine.com/u/VegasRich)\
**Post date:** [May 1, 2014, 6:00pm UTC](https://forums.unrealengine.com/t/noob-question-here-enumerate-display-modes/3615/3 "2014-05-01T18:00:13Z")

</div>

That’s terrific! Thanks a ton! I think perhaps someone needs to re-think the layout of the documentation - or maybe provide an index…

Thank you again!  
Rich

---

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [May 2, 2014, 6:39pm UTC](https://forums.unrealengine.com/t/noob-question-here-enumerate-display-modes/3615/4 "2014-05-02T18:39:27Z")

</div>

I ended up writing my own function to do this.

Full source code here!

**Wiki Link: The Solus Project**

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

Rama

---

<div class="post-metadata">

**Author:** ![VegasRich](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VegasRich](https://forums.unrealengine.com/u/VegasRich)\
**Post date:** [May 4, 2014, 11:29pm UTC](https://forums.unrealengine.com/t/noob-question-here-enumerate-display-modes/3615/5 "2014-05-04T23:29:11Z")

</div>

Man, thanks for that, too! I was just trying to figure out how to get something meaningful for FDisplayMetrics…
