equal
deleted
inserted
replaced
|
1 #include "../stdafx.h" |
|
2 #include "../variables.h" |
|
3 #include "null.hpp" |
|
4 |
|
5 static FBlitter_Null iFBlitter_Null; |
|
6 |
|
7 Sprite *Blitter_Null::Encode(SpriteLoader::Sprite *sprite, Blitter::AllocatorProc *allocator) |
|
8 { |
|
9 Sprite *dest_sprite; |
|
10 dest_sprite = (Sprite *)allocator(sizeof(*dest_sprite)); |
|
11 |
|
12 dest_sprite->height = sprite->height; |
|
13 dest_sprite->width = sprite->width; |
|
14 dest_sprite->x_offs = sprite->x_offs; |
|
15 dest_sprite->y_offs = sprite->y_offs; |
|
16 |
|
17 return dest_sprite; |
|
18 } |