Jump to content
×
×
  • Create New...

800x600 Config Fix


Recommended Posts

Prevents opening screen size under 800x600 from config file.Provides protection of the game market.20 30 they cannot open accounts.

 

//UserInterface/PythonSystem.cpp
//Find
 

    if (m_Config.bWindowed)
    {
        unsigned screen_width = GetSystemMetrics(SM_CXFULLSCREEN);
        unsigned screen_height = GetSystemMetrics(SM_CYFULLSCREEN);

        if (m_Config.width >= screen_width)
        {
            m_Config.width = screen_width;
        }
        if (m_Config.height >= screen_height)
        {
            m_Config.height = screen_height;
        }
    }

 

//add below
    

    if (m_Config.width < 800)
        m_Config.width = 800;
    
    if (m_Config.height < 600)
        m_Config.height = 600;

    ....

 

  • Metin2 Dev 1
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.


Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.