From 41eeeb247ed3f83baaf1ea73b364a57719c14d99 Mon Sep 17 00:00:00 2001 From: MegaMech Date: Thu, 22 Jan 2026 21:53:49 -0700 Subject: [PATCH] [DX, Mac] Allow Viewports to translate above the top of the screen (#985) * Update gfx_direct3d11.cpp * Update gfx_metal.cpp * Update gfx_direct3d_common.h * Update gfx_direct3d11.cpp * Update gfx_metal.h * Update gfx_metal.cpp --- include/fast/backends/gfx_direct3d_common.h | 3 +-- include/fast/backends/gfx_metal.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/include/fast/backends/gfx_direct3d_common.h b/include/fast/backends/gfx_direct3d_common.h index bfe5f96..16f96ea 100644 --- a/include/fast/backends/gfx_direct3d_common.h +++ b/include/fast/backends/gfx_direct3d_common.h @@ -163,8 +163,7 @@ class GfxRenderingAPIDX11 final : public GfxRenderingAPI { struct ShaderProgramD3D11* mShaderProgram; - // uint32_t current_width, current_height; - uint32_t mRenderTargetHeight; + int32_t mRenderTargetHeight; int mCurrentFramebuffer; FilteringMode mCurrentFilterMode = FILTER_NONE; diff --git a/include/fast/backends/gfx_metal.h b/include/fast/backends/gfx_metal.h index b926895..999d5ac 100644 --- a/include/fast/backends/gfx_metal.h +++ b/include/fast/backends/gfx_metal.h @@ -203,7 +203,7 @@ class GfxRenderingAPIMetal final : public GfxRenderingAPI { int mCurrentTile; uint32_t mCurrentTextureIds[SHADER_MAX_TEXTURES]; - uint32_t mRenderTargetHeight; + int32_t mRenderTargetHeight; int mCurrentFramebuffer; size_t mCurrentVertexBufferOffset; FilteringMode mCurrentFilterMode = FILTER_THREE_POINT;