MultiplyByScreenScaleX
function · screencoord · primitive
- Address
0x41ae60· 16 bytes, up to0x41ae6f- Signature
float __stdcall (float x)- Meaning
- Returns the float at 0x832a44 times a float argument, in st0
- Confidence
- verified, proof one
- Finding
- screencoord#scaling-and-unscaling
- Test
screencoord::sc_41ae60_scale_x
Finding: Scaling and unscaling in screencoord
Eight functions convert a coordinate between layout units and raw ones, x by K1 and y by K2:
| function | takes | result |
|---|---|---|
0x41ae60 | x on the stack, ret 4 | K1·x in st0 |
0x41ae70 | y on the stack, ret 4 | K2·y in st0 |
0x41ae40 | x on the stack, ret 4 | x/K1 in st0 |
0x41ae50 | y on the stack, ret 4 | y/K2 in st0 |
0x41ad80 | ecx and edx pointers, x, y on the stack, ret 8 | stores K1·x through ecx and K2·y through edx, each only when its pointer is not null |
0x41ade0 | the same | stores x/K1 and y/K2, each only when its pointer is not null |
0x41adb0 | ecx a rectangle of four floats, edx the output | writes K1·r[0], K1·r[2], K2·r[1], K2·r[3] in that order |
0x41ae10 | the same | writes r[0]/K1, r[2]/K1, r[1]/K2, r[3]/K2 in that order |
The single-value functions return the 53-bit product or quotient without rounding to float; the
pointer forms store each result rounded to float. Nothing tests for a zero scale: a zero divisor
gives an infinity, or NaN for a zero argument. 0x41adb0 and 0x41ae10 have no caller and are in
the last entry.
The derivation is in the doc.
Callers 53
- BeginLoadingScreen loadingscreen
- Script::GetScreenWidth glue
- CGWorldFrame::OnFrameSizeChanged ui
- GetUiScreenWidth ui
- LayoutCacheApplyFrame ui
- Script::PositionWorldMapArrowFrame ui
- Script::PositionMiniWorldMapArrowFrame ui
- CGChatBubbleFrame::CGChatBubbleFrame ui
- StartChatBubble ui
- Script::PingLocation ui
- SeatWorldTextRect ui
- GetRectEdgeFlags ui
- CountPlacementCells ui
- ClampRectToScreen ui
- SeatNamePlate ui
- BakePortrait ui
- GameTooltipClear ui
- CGTooltip::AddTexture ui
- GameTooltipSize ui
- GameTooltip::SetPadding ui
- GameTooltip::SetOwner ui
- WORLDTEXTSTRING::Draw playername
- XmlReadValue ui
- XmlReadDimension ui
- XmlReadInset ui
- PixelAlignX ui
- CLayoutFrame::CalculateRect ui
- CSimpleTexture::GetWidth ui
- CSimpleTexture::GetHeight ui
- CSimpleFontString::LoadXML ui
- CSimpleFontString::GetWidth ui
- CSimpleFontString::GetHeight ui
- Frame::SetHitRectInsets ui
- Frame::SetMinResize ui
- Frame::SetMaxResize ui
- Frame::SetBackdrop ui
- CSimpleEditBox::LayoutLabel ui
- Button::SetPushedTextOffset ui
- CFontObject::LoadXML ui
- CSimpleHTML::AddImage ui
- ScrollFrame::SetHorizontalScroll ui
- ScrollFrame::SetVerticalScroll ui
- EditBox::SetTextInsets ui
- FontString::SetFont ui
- FontString::SetShadowOffset ui
- FontString::SetSpacing ui
- FontString::SetTextHeight ui
- SetFontFromArgs ui
- FontMethods::SetShadowOffset ui
- FontMethods::SetSpacing ui
- Region::SetWidth ui
- Region::SetHeight ui
- Region::SetPoint ui
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.