mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-12-20 06:52:24 +00:00
Fix position text scaling with aspect ratio
This commit is contained in:
parent
dd54867e58
commit
2af11c8d2f
1 changed files with 7 additions and 6 deletions
|
|
@ -3,6 +3,7 @@
|
|||
#include <user/config.h>
|
||||
#include <ui/reddog/debug_draw.h>
|
||||
#include <ui/imgui_utils.h>
|
||||
#include <patches/aspect_ratio_patches.h>
|
||||
|
||||
|
||||
// boost::~::SWA::CDebugDraw::CMember::SDrawLine
|
||||
|
|
@ -44,10 +45,10 @@ PPC_FUNC(sub_82522040)
|
|||
if (Reddog::DebugDraw::GetIsDrawPosition())
|
||||
{
|
||||
const Reddog::SDrawText positionText{
|
||||
{Scale(750), Scale(120)},
|
||||
{Scale(g_aspectRatioOffsetX + 750), Scale(g_aspectRatioOffsetY + 120)},
|
||||
fmt::format("( {:.2f}, {:.2f}, {:.2f} )", a1->m_PlayerPosition.X.get(), a1->m_PlayerPosition.Y.get(), a1->m_PlayerPosition.Z.get()),
|
||||
0,
|
||||
Scale(1.0f),
|
||||
1.5f,
|
||||
0xFFFFFFFF,
|
||||
Reddog::eDrawTextFlags_NoShadow
|
||||
};
|
||||
|
|
@ -61,7 +62,7 @@ PPC_FUNC(sub_82522040)
|
|||
}
|
||||
|
||||
// GetIsDebugRenderForGameObject()
|
||||
PPC_FUNC(sub_82512BF8)
|
||||
{
|
||||
ctx.r3.u8 = 1; // Always return true
|
||||
}
|
||||
//PPC_FUNC(sub_82512BF8)
|
||||
//{
|
||||
// ctx.r3.u8 = 1; // Always return true
|
||||
//}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue