From 7fb95e2c2b2f84ecf9b5d5d2f02b147d1ad7cb3d Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 20 Aug 2009 10:23:39 +0000 Subject: (svn r17228) -Codechange: some coding style fixes --- src/blitter/32bpp_anim.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'src/blitter') diff --git a/src/blitter/32bpp_anim.cpp b/src/blitter/32bpp_anim.cpp index 1c72a1382..2ff9b536a 100644 --- a/src/blitter/32bpp_anim.cpp +++ b/src/blitter/32bpp_anim.cpp @@ -363,8 +363,11 @@ void Blitter_32bppAnim::ScrollBuffer(void *video, int &left, int &top, int &widt src = dst - scroll_y * this->anim_buf_width; /* Adjust left & width */ - if (scroll_x >= 0) dst += scroll_x; - else src -= scroll_x; + if (scroll_x >= 0) { + dst += scroll_x; + } else { + src -= scroll_x; + } uint tw = width + (scroll_x >= 0 ? -scroll_x : scroll_x); uint th = height - scroll_y; @@ -379,8 +382,11 @@ void Blitter_32bppAnim::ScrollBuffer(void *video, int &left, int &top, int &widt src = dst - scroll_y * this->anim_buf_width; /* Adjust left & width */ - if (scroll_x >= 0) dst += scroll_x; - else src -= scroll_x; + if (scroll_x >= 0) { + dst += scroll_x; + } else { + src -= scroll_x; + } /* the y-displacement may be 0 therefore we have to use memmove, * because source and destination may overlap */ -- cgit v1.2.3-54-g00ecf