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/ObjectTypes/CInput.cpp

    r25693 r25966  
    3232#include "ps/Globals.h"
    3333#include "ps/Hotkey.h"
     34
    3435#include "renderer/Renderer.h"
    3536
     
    12391240    if (cliparea != CRect())
    12401241    {
     1242
    12411243        glEnable(GL_SCISSOR_TEST);
    12421244        glScissor(
    1243             cliparea.left * g_GuiScale,
    1244             g_yres - cliparea.bottom * g_GuiScale,
    1245             cliparea.GetWidth() * g_GuiScale,
    1246             cliparea.GetHeight() * g_GuiScale);
     1245            cliparea.left * cale,
     1246            g_yres - cliparea.bottom * cale,
     1247            cliparea.GetWidth() * cale,
     1248            cliparea.GetHeight() * cale);
    12471249    }
    12481250
Note: See TracChangeset for help on using the changeset viewer.