src/blitter/null.cpp
author smatz
Wed, 18 Jun 2008 21:19:04 +0000
changeset 11015 cf4b53f23fde
parent 8638 d997e3a75b36
permissions -rw-r--r--
(svn r13571) -Codechange: define channels in struct Colour in different order on LE and BE machines
/* $Id$ */

/** @file null.cpp A blitter that doesn't blit. */

#include "../stdafx.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;
}