src/blitter/null.cpp
author rubidium
Thu, 29 May 2008 22:22:02 +0000
changeset 9424 0e77ca5edffb
parent 8142 837f47089a7c
permissions -rw-r--r--
(svn r13338) -Doc: add documentation about the window placement. Patch by Alberth.
/* $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;
}