Files @ r7253:dfc7cf035dbe
Branch filter:

Location: cpp/openttd-patchpack/source/src/blitter/null.cpp

miham
(svn r10559) -Update: WebTranslator2 update to 2007-07-14 19:32:31
american - 8 fixed by WhiteRabbit (8)
catalan - 15 changed by arnaullv (15)
estonian - 6 fixed by kristjans (6)
slovenian - 6 fixed by Necrolyte (6)
#include "../stdafx.h"
#include "../variables.h"
#include "null.hpp"

static FBlitter_Null iFBlitter_Null;

Sprite *Blitter_Null::Encode(SpriteLoader::Sprite *sprite, Blitter::AllocatorProc *allocator)
{
	Sprite *dest_sprite;
	dest_sprite = (Sprite *)allocator(sizeof(*dest_sprite));

	dest_sprite->height = sprite->height;
	dest_sprite->width  = sprite->width;
	dest_sprite->x_offs = sprite->x_offs;
	dest_sprite->y_offs = sprite->y_offs;

	return dest_sprite;
}