Files @ r8141:42cd6a34e115
Branch filter:

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

miham
(svn r11703) -Update: WebTranslator2 update to 2007-12-26 17:33:24
estonian - 16 changed by kristjans (16)
polish - 94 fixed, 6 changed by meush (100)
russian - 22 fixed by Smoky555 (22)
spanish - 11 fixed by eusebio (11)
traditional_chinese - 25 fixed, 4 changed by xbddc (29)
#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;
}