Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void __cdecl GX_VIConfigure_Impl(unsigned __int16 internal_width, unsigned __int16 internal_height)
- {
- double internal_width_; // st5
- double internal_height_; // st7
- float real_width; // [esp+0h] [ebp-8h]
- real_width = (float)(unsigned int)g_D3D_Width_2;
- internal_width_ = (double)internal_width;
- internal_height_ = (double)internal_height;
- if ( dword_C2CF88 ) // never gets changed, always 1?
- {
- g_InternalWidthScale = real_width / internal_width_;
- g_InternalHeightScale = 720.0 / (internal_height_ - (g_InternalLetterboxHeight * 2)) * (real_width / 1280.0);
- g_InternalHeightScaleFull = (double)(unsigned int)g_D3D_Height_2 / internal_height_;
- g_ViewportHeightScale = g_InternalHeightScale;
- }
- else
- {
- // below code is never ran, but the variables do get set elsewhere
- g_InternalWidthScale_unused = real_width / internal_width_;
- g_InternalHeightScale_unused = 720.0 / (internal_height_ - (g_InternalLetterboxHeight * 2)) * (real_width / 1280.0);
- g_InternalHeightScaleFull_unused = (double)(unsigned int)g_D3D_Height_2 / internal_height_;
- g_ViewportHeightScale_unused = g_InternalHeightScale_unused;
- }
- g_InternalHeight = (float)internal_height;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement