benilla-re systems structs docs

Script::HideCursor

function · glue · orchestration

Address
0x46db70 · 10 bytes, up to 0x46db79
Signature
int __fastcall (lua_State *L)
Meaning
Calls 0x58b590 with 0 and returns nothing
Confidence
verified, proof one
Name from
the community database (idb)
Finding
glue/script#cursor-and-screen-size

Finding: Cursor and screen size in glue: the script functions

With K1, K2 and A = RN24(0.75·a) the screen scales 0x41ad10 stores for the aspect a, RN24 rounding to float and RN53 to double:

  • GetCursorPosition (0x46dad0): from the cursor fractions fx, fy the interface root keeps, x = RN53(RN24(1024·A·RN24(K1·fx)) / K1) and y = RN53(RN24(1024·A·RN24(K2·fy)) / K1); both divide by K1.
  • GetScreenWidth (0x46dd30): RN53(RN24(1024·A·K1) / K1).
  • GetScreenHeight (0x46dd80): RN53(RN24(1024·A·K2) / K1).

So x ≈ 768·a·fx, y ≈ 768·fy, the width ≈ 768·a and the height ≈ 768. With the file values (K1 0.8, K2 0.6, A 1.0) they give 1024.0 and 768.0000190734861; at a = RN24(4/3), 1024.0 and 767.9999427795418. ShowCursor (0x46db60) and HideCursor (0x46db70) call the cursor switch 0x58b590 with 1 and 0.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 1

Calls and jumps by a bare address, from tables/calls.tsv.