Changeset - r21136:3149e2cec771
[Not reviewed]
master
0 2 0
rubidium - 11 years ago 2014-01-03 17:55:40
rubidium@openttd.org
(svn r26221) -Codechange: normalize constant names in anim-sse4 with the others (MJP)
2 files changed with 4 insertions and 4 deletions:
0 comments (0 inline, 0 general)
src/blitter/32bpp_anim_sse4.cpp
Show inline comments
 
@@ -372,7 +372,7 @@ void Blitter_32bppSSE4_Anim::Draw(Blitte
 
	switch (mode) {
 
		case BM_NORMAL: {
 
			const BlockType bt_last = (BlockType) (bp->width & 1);
 
			if (bp->skip_left != 0 || bp->width <= MARGIN_THRESHOLD) {
 
			if (bp->skip_left != 0 || bp->width <= MARGIN_NORMAL_THRESHOLD) {
 
				switch (bt_last) {
 
					case BT_EVEN: Draw<BM_NORMAL, RM_WITH_SKIP, BT_EVEN>(bp, zoom); return;
 
					case BT_ODD:  Draw<BM_NORMAL, RM_WITH_SKIP, BT_ODD>(bp, zoom); return;
 
@@ -388,7 +388,7 @@ void Blitter_32bppSSE4_Anim::Draw(Blitte
 
			break;
 
		}
 
		case BM_COLOUR_REMAP:
 
			if (bp->skip_left != 0 || bp->width <= MARGIN_THRESHOLD) {
 
			if (bp->skip_left != 0 || bp->width <= MARGIN_REMAP_THRESHOLD) {
 
				Draw<BM_COLOUR_REMAP, RM_WITH_SKIP, BT_NONE>(bp, zoom); return;
 
			} else {
 
				Draw<BM_COLOUR_REMAP, RM_WITH_MARGIN, BT_NONE>(bp, zoom); return;
src/blitter/32bpp_anim_sse4.hpp
Show inline comments
 
@@ -17,8 +17,8 @@
 
#include "32bpp_anim.hpp"
 
#include "32bpp_sse4.hpp"
 

	
 
#undef MARGIN_THRESHOLD
 
#define MARGIN_THRESHOLD 4
 
#undef MARGIN_NORMAL_THRESHOLD
 
#define MARGIN_NORMAL_THRESHOLD 4
 

	
 
/** The SSE4 32 bpp blitter with palette animation. */
 
class Blitter_32bppSSE4_Anim FINAL : public Blitter_32bppAnim, public Blitter_32bppSSE_Base {
0 comments (0 inline, 0 general)