summaryrefslogtreecommitdiff
path: root/src/d/lyt/d2d.cpp
diff options
context:
space:
mode:
authorrobojumper <robojumper@gmail.com>2025-08-02 09:19:04 +0200
committerGitHub <noreply@github.com>2025-08-02 09:19:04 +0200
commit899f86a57111df7545e5ab031e92d8564faa112a (patch)
treeac293990b33eb3f4be87b505d538ffc47929362f /src/d/lyt/d2d.cpp
parente2bba3730bff60d4174f4b8add74913b0aa53d3a (diff)
parentb5f05db18226c795a92a55788c7bd36c8985b9af (diff)
Merge pull request #225 from robojumper/d_gfx
d_gfx mostly OK
Diffstat (limited to 'src/d/lyt/d2d.cpp')
-rw-r--r--src/d/lyt/d2d.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/d/lyt/d2d.cpp b/src/d/lyt/d2d.cpp
index c5135e28..8712443f 100644
--- a/src/d/lyt/d2d.cpp
+++ b/src/d/lyt/d2d.cpp
@@ -1,6 +1,7 @@
#include "d/lyt/d2d.h"
#include "d/d_font_manager.h"
+#include "d/d_gfx.h"
#include "d/d_message.h"
#include "d/d_lyt_hio.h"
#include "d/lyt/d_textbox.h"
@@ -199,15 +200,13 @@ void Multi_c::calcAfter() {
mLayout.CalculateMtx(mDrawInfo);
}
-extern "C" bool NeedsScreenAdjustment();
-
// Largely copied from m2d::Simple_c::draw
void Multi_c::draw() {
nw4r::ut::Rect r = mLayout.GetLayoutRect();
f32 near = 0.0f;
f32 far = 500.0f;
EGG::Screen s;
- bool needsAdjust = NeedsScreenAdjustment();
+ bool needsAdjust = dGfx_c::isTvModeWidescreen();
f32 f1 = EGG::Screen::GetSizeXMax(EGG::Screen::TV_MODE_16_9);
f32 f2 = EGG::Screen::GetSizeXMax(EGG::Screen::TV_MODE_4_3);