HUD: размер экрана из контекста и rsxm-hud
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user