MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / GetOriginalRectScaled

Method GetOriginalRectScaled

ogsr_engine/xrGame/UICustomItem.cpp:160–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160Frect CUICustomItem::GetOriginalRectScaled()
161{
162 Frect rect = iOriginalRect;
163
164 rect.x2 = rect.x1 + rect.width();
165 rect.y2 = rect.y1 + rect.height();
166
167 return rect;
168}
169
170Frect CUICustomItem::GetOriginalRect() const { return iOriginalRect; }
171

Callers 4

DrawTextureMethod · 0.80
DrawTextureMethod · 0.80
TextureClipperMethod · 0.80
ClipperOffMethod · 0.80

Calls 2

widthMethod · 0.45
heightMethod · 0.45

Tested by

no test coverage detected