summaryrefslogtreecommitdiff
path: root/src/d/d_gfx.cpp
diff options
context:
space:
mode:
authorrobojumper <robojumper@gmail.com>2025-08-02 09:20:00 +0200
committerrobojumper <robojumper@gmail.com>2025-08-02 09:20:02 +0200
commit0be5f872286ad600dd0485da377cf8bdb7542526 (patch)
treea6d2b50b1f630d3b59393a0bc5b4881126fb1851 /src/d/d_gfx.cpp
parentd153cbc0ede10dd24a32e89faf81c8fb839ee23a (diff)
d_s_boot progress
Diffstat (limited to 'src/d/d_gfx.cpp')
-rw-r--r--src/d/d_gfx.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/d/d_gfx.cpp b/src/d/d_gfx.cpp
index 3ef697c3..fde95962 100644
--- a/src/d/d_gfx.cpp
+++ b/src/d/d_gfx.cpp
@@ -23,7 +23,7 @@
dGfx_c *dGfx_c::sInstance;
-dGfx_c::dGfx_c() : mpTextureBuffer(nullptr), field_0x08(0), field_0x09(0) {
+dGfx_c::dGfx_c() : mpTextureBuffer(nullptr), mBufRefcount(0), mLetterboxEnabled(false) {
mDrawCallback = nullptr;
d3d::create(mHeap::g_gameHeaps[0]);
@@ -52,13 +52,13 @@ EGG::TextureBuffer *dGfx_c::getTextureBuffer() {
mpTextureBuffer->onCapFlag(0x20); // TODO
ret = mpTextureBuffer;
}
- field_0x08++;
+ mBufRefcount++;
return ret;
}
void dGfx_c::releaseTextureBuffer() {
- field_0x08--;
- if (field_0x08 == 0 && mpTextureBuffer != nullptr) {
+ mBufRefcount--;
+ if (mBufRefcount == 0 && mpTextureBuffer != nullptr) {
mpTextureBuffer->free();
mpTextureBuffer = nullptr;
}
@@ -74,7 +74,7 @@ void dGfx_c::drawBefore() {
}
void dGfx_c::drawLetterbox() {
- if (field_0x09 != 0 && isTvMode4To3()) {
+ if (mLetterboxEnabled && isTvMode4To3()) {
EGG::Screen screen(*EGG::Screen::GetRoot());
screen.SetNearFar(-1.0f, 1.0f);
screen.SetProjectionGX();