0ad/source/simulation2/scripting
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
..
EngineScriptConversions.cpp Move Script* classes to Script namespace 2026-06-20 17:43:00 +02:00
JSInterface_Simulation.cpp Remove global g_xres and x_yres 2026-07-08 11:35:46 +02:00
JSInterface_Simulation.h Move Script* classes to Script namespace 2026-06-20 17:43:00 +02:00
MessageTypeConversions.cpp Move Script* classes to Script namespace 2026-06-20 17:43:00 +02:00
ScriptComponent.cpp Move Script* classes to Script namespace 2026-06-20 17:43:00 +02:00
ScriptComponent.h Move Script* classes to Script namespace 2026-06-20 17:43:00 +02:00