Jump to content
  • Advertisement

Alex Fr

Member
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

1 Neutral

About Alex Fr

  • Rank
    Newbie

Personal Information

  • Interests
    Programming

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. galop1n, I played with DPI by using SetProcessDpiAwareness API and setting the text size to 100% in Windows Display Settings. This helped to solve the problem, thank you for pointing in right direction.
  2. I make DXGI adapters and monitors enumeration. The second monitor connected to my computer is Dell P2715Q, which has 3840*2160 resolution. However, the program reports it as 2560*1440, the second available resolution. Minimal code to reproduce: #include "stdafx.h" #include <Windows.h> #include <stdio.h> #include <tchar.h> #include <iostream> #include <DXGI.h> #pragma comment(lib, "DXGI.lib") using namespace std; int main() { IDXGIFactory1* pFactory1; HRESULT hr = CreateDXGIFactory1(__uuidof(IDXGIFactory1), (void**)(&pFactory1)); if (FAILED(hr)) { wcout << L"CreateDXGIFactory1 failed. " << endl; return 0; } for (UINT i = 0;; i++) { IDXGIAdapter1* pAdapter1 = nullptr; hr = pFactory1->EnumAdapters1(i, &pAdapter1); if (hr == DXGI_ERROR_NOT_FOUND) { // no more adapters break; } if (FAILED(hr)) { wcout << L"EnumAdapters1 failed. " << endl; return 0; } DXGI_ADAPTER_DESC1 desc; hr = pAdapter1->GetDesc1(&desc); if (FAILED(hr)) { wcout << L"GetDesc1 failed. " << endl; return 0; } wcout << L"Adapter: " << desc.Description << endl; for (UINT j = 0;; j++) { IDXGIOutput *pOutput = nullptr; HRESULT hr = pAdapter1->EnumOutputs(j, &pOutput); if (hr == DXGI_ERROR_NOT_FOUND) { // no more outputs break; } if (FAILED(hr)) { wcout << L"EnumOutputs failed. " << endl; return 0; } DXGI_OUTPUT_DESC desc; hr = pOutput->GetDesc(&desc); if (FAILED(hr)) { wcout << L"GetDesc1 failed. " << endl; return 0; } wcout << L" Output: " << desc.DeviceName << L" (" << desc.DesktopCoordinates.left << L"," << desc.DesktopCoordinates.top << L")-(" << (desc.DesktopCoordinates.right - desc.DesktopCoordinates.left) << L"," << (desc.DesktopCoordinates.bottom - desc.DesktopCoordinates.top) << L")" << endl; } } return 0; } Program output: Adapter: Intel(R) Iris(TM) Pro Graphics 6200 Output: \\.\DISPLAY1 (0,0)-(1920,1200) Output: \\.\DISPLAY2 (1920,0)-(2560,1440) DISPLAY2 is reported with low resolution. Environment: Windows 10 x64 Intel(R) Iris(TM) Pro Graphics 6200 DELL P2715Q What can cause this behavior: DirectX restrictions, video memory, display adapter, driver, monitor? How can I fix this and get full available resolution?
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!