Skip to content

Commit

Permalink
Fix DirectRenderer clip-y offset
Browse files Browse the repository at this point in the history
  • Loading branch information
hughsando committed Oct 3, 2024
1 parent ab442e2 commit bec66f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion project/src/common/Display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -907,9 +907,9 @@ void DirectRenderer::Render( const RenderTarget &inTarget, const RenderState &in
RenderState state(inState);

gDirectRenderContext = inTarget.mHardware;
gDirectRenderContext->BeginDirectRender(inState.mClipRect);
Rect clip = inState.mClipRect;
clip.y = inTarget.mHardware->Height() - clip.y - clip.h;
gDirectRenderContext->BeginDirectRender(clip);
if (gNmeRenderGcFree)
{
gc_exit_blocking();
Expand Down

0 comments on commit bec66f0

Please sign in to comment.