HUD: размер экрана из контекста и rsxm-hud

This commit is contained in:
SashegDev
2026-10-17 03:45:59 +03:00
parent b5ffe0e9d7
commit 108c001af6
6 changed files with 80 additions and 11 deletions
@@ -385,6 +385,16 @@ public final class Rsx {
return h.scale();
}
/** Screen width in pixels, 0 when the game did not say. */
public int width() {
return h == null ? 0 : h.width();
}
/** Screen height in pixels, 0 when the game did not say. */
public int height() {
return h == null ? 0 : h.height();
}
/** A solid rectangle; alpha 0..1. */
public void rect(float x, float y, float w, float height, int rgb,
float alpha) {