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/GUIMatrix.cpp

    r22605 r25966  
    1 /* Copyright (C) 2019 Wildfire Games.
     1/* Copyright (C) 20 Wildfire Games.
    22 * This file is part of 0 A.D.
    33 *
     
    1919
    2020#include "GUIMatrix.h"
    21 
     21#include "ps/VideoMode.h"
    2222#include "maths/Matrix3D.h"
    2323
    2424extern int g_xres, g_yres;
    25 extern float g_GuiScale;
    2625
    2726CMatrix3D GetDefaultGuiMatrix()
    2827{
    29     float xres = g_xres / g_GuiScale;
    30     float yres = g_yres / g_GuiScale;
     28    float xres = g_xres / g_;
     29    float yres = g_yres / g_;
    3130
    3231    CMatrix3D m;
Note: See TracChangeset for help on using the changeset viewer.