GetScaledScreenAspect
function · screencoord · orchestration
- Address
0x41ad70· 7 bytes, up to0x41ad76- Signature
float __cdecl (void)- Meaning
- Returns the float at 0x832a4c, the aspect times 0.75, in st0
- Confidence
- verified, proof two
- Finding
- screencoord#screen-scale-state
Finding: Screen scale state in screencoord
0x41ad10 takes the display aspect a, a float, on the stack (ret 4) and sets four floats. With
RN24 rounding to float and L = 1/√(a² + 1) computed at 53 bits:
| global | value |
|---|---|
0x832a40 | a, the dword as passed |
0x832a44 | K1 = RN24(a·L), the screen's width in layout units |
0x832a48 | K2 = RN24(L), the screen's height in layout units |
0x832a4c | A = RN24(0.75·a) |
(K1, K2) is the unit vector along (a, 1), so the screen's diagonal is one layout unit. The
file holds 4/3's values except K2: a 1.3333334, K1 0.8 (0x3f4ccccd), K2 0.6
(0x3f19999a), A 1.0; a call with RN24(4/3) stores K2 as 0x3f199999. 0x41ad70 returns
A in st0.
The derivation is in the doc.
Callers 82
- BeginLoadingScreen loadingscreen
- PaintLoadingScreen loadingscreen
- Script::GetCursorPosition glue
- Script::GetScreenWidth glue
- Script::GetScreenHeight glue
- GetUiScreenWidth ui
- GetUiScreenHeight ui
- GetCursorPositionLua ui
- Script::SetupFullscreenScale ui
- LayoutCacheApplyFrame ui
- LayoutCacheSaveFrame ui
- Script::PositionWorldMapArrowFrame ui
- Script::PositionMiniWorldMapArrowFrame ui
- CGChatBubbleFrame::CGChatBubbleFrame ui
- StartChatBubble ui
- Script::PingLocation ui
- GameTooltipClear ui
- CGTooltip::AddTexture ui
- GameTooltipSize ui
- GameTooltip::SetPadding ui
- GameTooltip::SetOwner ui
- XmlReadValue ui
- XmlReadDimension ui
- XmlReadInset ui
- CSimpleTexture::GetWidth ui
- CSimpleTexture::GetHeight ui
- CSimpleFontString::LoadXML ui
- CSimpleFontString::GetWidth ui
- CSimpleFontString::GetHeight ui
- Frame::GetHitRectInsets ui
- Frame::SetHitRectInsets ui
- Frame::GetMinResize ui
- Frame::SetMinResize ui
- Frame::GetMaxResize ui
- Frame::SetMaxResize ui
- Frame::GetBackdrop ui
- Frame::SetBackdrop ui
- CSimpleEditBox::LayoutLabel ui
- CSimpleEditBox::PlaceCaret ui
- Button::SetPushedTextOffset ui
- Button::GetPushedTextOffset ui
- Button::GetTextWidth ui
- Button::GetTextHeight ui
- CFontObject::LoadXML ui
- CSimpleScrollFrame::SetHorizontalScroll ui
- CSimpleScrollFrame::SetVerticalScroll ui
- CSimpleScrollFrame::MeasureScrollRange ui
- CSimpleHTML::AddImage ui
- DrawMovie ui
- ScrollFrame::SetHorizontalScroll ui
- ScrollFrame::SetVerticalScroll ui
- ScrollFrame::GetHorizontalScroll ui
- ScrollFrame::GetVerticalScroll ui
- ScrollFrame::GetHorizontalScrollRange ui
- ScrollFrame::GetVerticalScrollRange ui
- EditBox::SetTextInsets ui
- EditBox::GetTextInsets ui
- FontString::GetFont ui
- FontString::SetFont ui
- FontString::GetShadowOffset ui
- FontString::SetShadowOffset ui
- FontString::GetSpacing ui
- FontString::SetSpacing ui
- FontString::SetTextHeight ui
- FontString::GetStringWidth ui
- SetFontFromArgs ui
- FontMethods::GetFont ui
- FontMethods::SetShadowOffset ui
- FontMethods::GetShadowOffset ui
- FontMethods::SetSpacing ui
- FontMethods::GetSpacing ui
- Region::GetCenter ui
- Region::GetLeft ui
- Region::GetRight ui
- Region::GetTop ui
- Region::GetBottom ui
- Region::GetWidth ui
- Region::SetWidth ui
- Region::GetHeight ui
- Region::SetHeight ui
- Region::GetPoint ui
- Region::SetPoint ui
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.