0ad/source/gui
Ralph Sennhauser 99bbc24265
Some checks are pending
checkrefs / lfscheck (push) Waiting to run
checkrefs / checkrefs (push) Waiting to run
lint / cppcheck (push) Waiting to run
lint / copyright (push) Waiting to run
lint / jenkinsfiles (push) Waiting to run
pre-commit / build (push) Waiting to run
Remove global g_xres and x_yres
Instead query g_VideoMode where needed. As both g_xres and g_yres aren't
global anymore remove static from UpdateRenderer. While at it use more
desicriptive names: GetXRes -> GetWindowWidth, GetYRes ->
GetWindowHeight.

This reduces the amount of variables tracking width and height by one
each.

Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
2026-07-08 11:35:46 +02:00
..
ObjectBases Move Script* classes to Script namespace 2026-06-20 17:43:00 +02:00
ObjectTypes Makes GameView returning reference on camera 2026-06-28 17:57:16 +02:00
Scripting Move Script* classes to Script namespace 2026-06-20 17:43:00 +02:00
SettingTypes Move Script* classes to Script namespace 2026-06-20 17:43:00 +02:00
tests Move Script* classes to Script namespace 2026-06-20 17:43:00 +02:00
CGUI.cpp Remove global g_xres and x_yres 2026-07-08 11:35:46 +02:00
CGUI.h Move Script* classes to Script namespace 2026-06-20 17:43:00 +02:00
CGUIScrollBarHorizontal.cpp Fix some headers in gui 2025-07-02 13:20:13 +02:00
CGUIScrollBarHorizontal.h Fix some headers in gui 2025-07-02 13:20:13 +02:00
CGUIScrollBarVertical.cpp Fix some headers in gui 2025-07-02 13:20:13 +02:00
CGUIScrollBarVertical.h Fix some headers in gui 2025-07-02 13:20:13 +02:00
CGUISetting.cpp Move Script* classes to Script namespace 2026-06-20 17:43:00 +02:00
CGUISetting.h Move Script* classes to Script namespace 2026-06-20 17:43:00 +02:00
CGUISprite.cpp Fix some headers in gui 2025-07-02 13:20:13 +02:00
CGUISprite.h Fix UB in GUISprite Draw 2026-07-08 09:51:17 +02:00
CGUIText.cpp Remove global g_xres and x_yres 2026-07-08 11:35:46 +02:00
CGUIText.h Add [locale] inline tag for per-locale fonts 2025-08-04 09:35:41 -05:00
GUIManager.cpp Move Script* classes to Script namespace 2026-06-20 17:43:00 +02:00
GUIManager.h Move Script* classes to Script namespace 2026-06-20 17:43:00 +02:00
GUIObjectEventBroadcaster.h Fix some headers in gui 2025-07-02 13:20:13 +02:00
GUIObjectTypes.cpp Fix warnings on the charts tab of summary screen 2025-12-23 10:28:22 +01:00
GUIRenderer.cpp Fix some includes all over the place 2025-08-14 20:15:30 +02:00
GUIRenderer.h Fix some headers in gui 2025-07-02 13:20:13 +02:00
GUIStringConversions.cpp Fix most headers in gui 2025-07-05 12:42:34 +02:00
GUITooltip.cpp Fix most headers in gui 2025-07-05 12:42:34 +02:00
GUITooltip.h Fix some headers in gui 2025-07-02 13:20:13 +02:00
IGUIScrollBar.cpp Fix some headers in gui 2025-07-02 13:20:13 +02:00
IGUIScrollBar.h Fix some headers in gui 2025-07-02 13:20:13 +02:00
SGUIIcon.h Fix some headers in gui 2025-07-02 13:20:13 +02:00
SGUIMessage.h Fix some headers in gui 2025-07-02 13:20:13 +02:00
SGUIStyle.h Fix some headers in gui 2025-07-02 13:20:13 +02:00