Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 1b8c839

Browse files
committed
[[ Bug 15345 ]] Fix call to MCContext::setorigin in sprite renderer callback to comply with changed behaviour.
1 parent 21170c7 commit 1b8c839

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/notes/bugfix-15345.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Rendering issues, layout mangled going from LC7 to LC8

engine/src/redraw.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,7 @@ static bool testtilecache_sprite_renderer(void *p_context, MCContext *p_target,
979979
return true;
980980

981981
// IM-2014-07-03: [[ GraphicsPerformance ]] Context origin is the topleft of the sprite so adjust to card coords.
982-
p_target -> setorigin(t_control_rect . x, t_control_rect . y);
982+
p_target -> setorigin(-t_control_rect . x, -t_control_rect . y);
983983
p_target -> cliprect(t_dirty_rect);
984984
p_target -> setfunction(GXcopy);
985985
p_target -> setopacity(255);

0 commit comments

Comments
 (0)