Skip to content

Commit

Permalink
Fix EasyRPG#544, use the bottom frame to blit from
Browse files Browse the repository at this point in the history
(copy-and-paste error).

This fixes a regression introduced in 82cd911
"Eliminate most uses of BitmapScreen".
  • Loading branch information
carstene1ns committed Aug 26, 2015
1 parent d082a55 commit e17cf94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/window.cpp
Expand Up @@ -124,7 +124,7 @@ void Window::Draw() {
dst->Blit(x + width - 8, y + 8 + src_rect.y, *frame_right, src_rect, opacity);

dst->Blit(x, y + height / 2 - ianimation_count, *frame_up, frame_up->GetRect(), opacity);
dst->Blit(x, y + height / 2 + ianimation_count - 8, *frame_up, frame_down->GetRect(), opacity);
dst->Blit(x, y + height / 2 + ianimation_count - 8, *frame_down, frame_down->GetRect(), opacity);
} else {
dst->Blit(x, y + height / 2 - ianimation_count, *frame_up, Rect(0, 0, width, ianimation_count), opacity);
dst->Blit(x, y + height / 2 , *frame_down, Rect(0, 8 - ianimation_count, width, ianimation_count), opacity);
Expand Down

0 comments on commit e17cf94

Please sign in to comment.