Jump to content

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;

    ....

 

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

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.