Timestamp:
Oct 17, 2021, 12:58:51 PM (3 years ago)
Author:
Silier
Message:

There have been quite a bit of number of questions how to change scale of the gui, because this option is hidden from the user.

Use dropdown with values. Implement confirmation box with countdown to revert scale change because buttons can get unable to click.

Differential revision: D3037
Comments by: @vladislavbelov, @Stan, @wraitii, @pieq, @sera
Tested by: @Langbart

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ps/trunk/source/gui/CGUIText.cpp

    r25645 r25966  
    2727#include "gui/SettingTypes/CGUIString.h"
    2828#include "ps/CStrInternStatic.h"
     29
    2930#include "renderer/Renderer.h"
    3031
     
    3233
    3334extern int g_xres, g_yres;
    34 extern float g_GuiScale;
    3535
    3636// TODO Gee: CRect => CPoint ?
     
    440440        clipping.right = std::floor(clipping.right);
    441441
     442
    442443        glEnable(GL_SCISSOR_TEST);
    443444        glScissor(
    444             std::ceil(clipping.left * g_GuiScale),
    445             std::ceil(g_yres - clipping.bottom * g_GuiScale),
    446             std::floor(clipping.GetWidth() * g_GuiScale),
    447             std::floor(clipping.GetHeight() * g_GuiScale));
     445            std::ceil(clipping.left * cale),
     446            std::ceil(g_yres - clipping.bottom * cale),
     447            std::floor(clipping.GetWidth() * cale),
     448            std::floor(clipping.GetHeight() * cale));
    448449    }
    449450
Note: See TracChangeset for help on using the changeset viewer.