Files
@ r7565:f5decc6a8e97
Branch filter:
Location: cpp/openttd-patchpack/source/src/blitter/null.cpp - annotation
r7565:f5decc6a8e97
464 B
text/x-c
(svn r11090) -Fix (r11089): incorrect version format and failure with paths containing spaces
r6878:61440e99046f r6937:bea726150bf3 r6878:61440e99046f r6878:61440e99046f r6878:61440e99046f r6878:61440e99046f r6878:61440e99046f r6878:61440e99046f r6878:61440e99046f r6878:61440e99046f r6878:61440e99046f r6878:61440e99046f r6878:61440e99046f r6878:61440e99046f r6878:61440e99046f r6878:61440e99046f r6878:61440e99046f r6878:61440e99046f | #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;
}
|