openttd updated to 1.5.0-beta2
--HG-- branch : openttd
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* $Id: 8bpp_simple.cpp 26103 2013-11-25 13:06:33Z rubidium $ */
|
||||
/* $Id: 8bpp_simple.cpp 26969 2014-10-06 18:45:51Z rubidium $ */
|
||||
|
||||
/*
|
||||
* This file is part of OpenTTD.
|
||||
@@ -13,6 +13,8 @@
|
||||
#include "../zoom_func.h"
|
||||
#include "8bpp_simple.hpp"
|
||||
|
||||
#include "../safeguards.h"
|
||||
|
||||
/** Instantiation of the simple 8bpp blitter factory. */
|
||||
static FBlitter_8bppSimple iFBlitter_8bppSimple;
|
||||
|
||||
@@ -37,6 +39,7 @@ void Blitter_8bppSimple::Draw(Blitter::BlitterParams *bp, BlitterMode mode, Zoom
|
||||
|
||||
switch (mode) {
|
||||
case BM_COLOUR_REMAP:
|
||||
case BM_CRASH_REMAP:
|
||||
colour = bp->remap[*src];
|
||||
break;
|
||||
|
||||
@@ -44,6 +47,10 @@ void Blitter_8bppSimple::Draw(Blitter::BlitterParams *bp, BlitterMode mode, Zoom
|
||||
if (*src != 0) colour = bp->remap[*dst];
|
||||
break;
|
||||
|
||||
case BM_BLACK_REMAP:
|
||||
colour = 0;
|
||||
break;
|
||||
|
||||
default:
|
||||
colour = *src;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user