Skip to main content
GameDev.net gamedev.net
🔒 Locked

Adapter display modes...

Started by devronious Aug 25, 2008 at 2:04 PM 1 replies 400+ views
Original Post
devronious
devronious
I have a method that returns the display modes for a certain adapter but not all display modes seem to work. On some display modes the textures don't seem to render to the rendertarget. Any idea why? I'm hoping I can filter out the modes that wont work. Below is my code:


        private void RefreshDisplayModes()
        {
            this.resComboBox.Items.Clear();
            DisplayModeCollection dmc = this.ai.SupportedDisplayModes;
            foreach (DisplayMode dm in dmc)
            {                   
                this.resComboBox.Items.Add(BasicSettings.DisplayModeToString(dm));
            }
            this.resComboBox.SelectedIndex = this.dmIndex;
        }


-Devin
Evil Steve
Evil Steve
Have a look at This Link. Although it's in C++, the same concepts apply to C#. Basically, you need to check that the specified adapter format is usable for all sorts of things.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.