Aleksoid1978 / VideoRenderer

Внешний видео-рендерер
GNU General Public License v3.0
1.06k stars 119 forks source link

Cosmetic changes on MainPropPage for 125% DPi #118

Closed xLn2 closed 8 months ago

xLn2 commented 8 months ago

MPC Video Renderer 0.7.1.2172 x64 on Mpc-Be 1.6.11 and Mpc-hc, some of strings are not visible due to scaling 125% dpi on 1080p resolution.

  1. Unseen strings text area increased:

    • Chroma upsampling:
    • if not possible
    • Subtitle and OSD brightness:
  2. Chrome upsampling: and below comboboxes width decreased to fit text

  3. Show statistics font combobox (IDC_COMBO6) moved next to Show statistic (IDC_CHECK2)

  4. Decreased Subtitle and OSD brightness:'s slider (IDC_SLIDER1) width

  5. Order re adjusted for TAB key

Mpc-Be view Present VS2019 view Planned VS2019 view
image image devenv_7l63yjzTQw

I only modificated MpcVideoRenderer.rc file and these are template codes for incase developers are interested.

IDD_MAINPROPPAGE DIALOGEX 0, 0, 352, 245
STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD
FONT 8, "MS Shell Dlg", 400, 0, 0x0
BEGIN
    CONTROL         "Use Direct3D 11",IDC_CHECK1,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,10,4,67,10
    LTEXT           "Texture format:",IDC_STATIC,10,20,52,8
    COMBOBOX        IDC_COMBO1,66,18,86,30,CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
    CONTROL         "Show statistics",IDC_CHECK2,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,178,4,63,10
    COMBOBOX        IDC_COMBO6,245,4,97,30,CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
    GROUPBOX        "DXVA2 and D3D11 video processor",IDC_STATIC1,5,35,162,81
    LTEXT           "Use for:",IDC_STATIC2,10,47,27,8
    CONTROL         "NV12",IDC_CHECK7,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,41,47,33,10
    CONTROL         "P010/P016",IDC_CHECK8,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,78,47,51,10
    CONTROL         "YUY2",IDC_CHECK9,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,133,47,33,10
    CONTROL         "Other supported formats",IDC_CHECK4,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,41,60,96,10
    CONTROL         "Double the frame rate when deinterlacing",IDC_CHECK3,
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,10,74,152,10
    CONTROL         "Use for resizing",IDC_CHECK5,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,10,87,65,10
    LTEXT           "Request Super Resolution",IDC_STATIC7,10,100,84,8
    COMBOBOX        IDC_COMBO8,98,98,66,30,CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
    GROUPBOX        "HDR",IDC_STATIC,171,35,176,96
    CONTROL         "Prefer Dolby Vision over PQ and HLG",IDC_CHECK18,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,178,47,133,10
    CONTROL         "Passthrough to display",IDC_CHECK12,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,178,60,89,10
    LTEXT           " if not possible",IDC_STATIC4,178,73,54,8
    CONTROL         "Convert to SDR",IDC_CHECK14,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,178,85,66,10
    LTEXT           "Windows HDR:",IDC_STATIC5,178,100,53,8
    COMBOBOX        IDC_COMBO7,232,98,110,30,CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
    LTEXT           "Subtitle and OSD brightness:",IDC_STATIC6,178,115,101,8
    CONTROL         "",IDC_SLIDER1,"msctls_trackbar32",TBS_BOTH | TBS_NOTICKS | WS_TABSTOP,285,114,57,12
    GROUPBOX        "Shader video processor",IDC_STATIC,5,120,161,107
    LTEXT           "Chroma upsampling:",IDC_STATIC,10,134,70,8
    COMBOBOX        IDC_COMBO5,84,132,72,30,CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
    LTEXT           "Upscaling:",IDC_STATIC,10,150,70,8
    COMBOBOX        IDC_COMBO2,84,148,72,30,CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
    LTEXT           "Downscaling:",IDC_STATIC,10,166,70,8
    COMBOBOX        IDC_COMBO3,84,164,72,30,CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
    CONTROL         "Use the ""Upscaling"" method to reducing the frame to 50%",IDC_CHECK6,
                    "Button",BS_AUTOCHECKBOX | BS_MULTILINE | WS_TABSTOP,10,180,146,15
    CONTROL         "Use dithering",IDC_CHECK10,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,10,199,58,10
    CONTROL         "Use Blend deinterlacing for YUV 4:2:0",IDC_CHECK17,
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,10,212,138,10
    LTEXT           "Swap effect:",IDC_STATIC3,174,137,42,8
    COMBOBOX        IDC_COMBO4,232,135,76,30,CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
    CONTROL         "Use exclusive fullscreen",IDC_CHECK11,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,174,150,92,10
    CONTROL         "Wait for VBlank before Present",IDC_CHECK15,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,174,163,115,10
    CONTROL         "Reinitialize D3D device when changing display",IDC_CHECK16,
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,174,176,168,10
    EDITTEXT        IDC_EDIT2,76,229,266,12,ES_READONLY | NOT WS_BORDER,WS_EX_RIGHT
    PUSHBUTTON      "Default",IDC_BUTTON1,305,211,37,14
END
v0lt commented 8 months ago

I made some changes in commit 2360498. Please check it out.

xLn2 commented 8 months ago

It looks nice on Vs2019, I will check again when nightly release out. One more thing is ordering can be change, pressing TAB key to navigate is random like. I had tried to ordering it you can check if its useful.

v0lt commented 8 months ago

https://disk.yandex.ru/d/X0EVMKP4TcmnHQ

xLn2 commented 8 months ago

Thanks, it works as expected. https://github.com/Aleksoid1978/VideoRenderer/assets/3073922/a0c41a04-5c92-40bd-90a3-77bff76da4d5