0ad/source
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
..
collada Fix some includes all over the place 2025-08-14 20:15:30 +02:00
dapinterface Move Script* classes to Script namespace 2026-06-20 17:43:00 +02:00
graphics Remove global g_xres and x_yres 2026-07-08 11:35:46 +02:00
gui Remove global g_xres and x_yres 2026-07-08 11:35:46 +02:00
i18n Move Script* classes to Script namespace 2026-06-20 17:43:00 +02:00
lib Removes extensions prior 2.1 2026-07-08 09:28:52 +02:00
lobby Re-use XMPP resource GUID for whole app runtime 2026-07-01 15:36:51 +02:00
maths Replace M_PI with C++ numbers 2026-06-04 20:29:48 +02:00
network Move Script* classes to Script namespace 2026-06-20 17:43:00 +02:00
pch Compute actual size of GUI objects lazily 2026-04-12 00:17:02 +02:00
ps Remove global g_xres and x_yres 2026-07-08 11:35:46 +02:00
renderer Remove global g_xres and x_yres 2026-07-08 11:35:46 +02:00
rlinterface Move Script* classes to Script namespace 2026-06-20 17:43:00 +02:00
scriptinterface Don't crash on compile error of hotloads 2026-06-21 20:05:39 +02:00
simulation2 Remove global g_xres and x_yres 2026-07-08 11:35:46 +02:00
soundmanager Makes GameView returning reference on camera 2026-06-28 17:57:16 +02:00
third_party Removes extensions prior 2.1 2026-07-08 09:28:52 +02:00
tools Remove global g_xres and x_yres 2026-07-08 11:35:46 +02:00
CxxTestRunner.tpl Use return instead of exit in testrunner 2025-10-15 18:17:24 +02:00
main.cpp Move Script* classes to Script namespace 2026-06-20 17:43:00 +02:00
test_setup.cpp Move Script* classes to Script namespace 2026-06-20 17:43:00 +02:00