diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2013-03-15 12:59:55 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2013-03-15 12:59:55 (GMT) |
| commit | 73b6ff4efb4bbe31993a595987b9abc59a5a2e76 (patch) | |
| tree | 7320e993bf6df6c59ef956087f3fa63f17b19b5d /src/graphics/RasterDrawMethods.inl | |
| parent | 6b68c04cd613847e4f2bbe1f0cd8a2a13a9d4660 (diff) | |
| download | powder-73b6ff4efb4bbe31993a595987b9abc59a5a2e76.zip powder-73b6ff4efb4bbe31993a595987b9abc59a5a2e76.tar.gz | |
Use VideoBuffer in place of thumbnail
Diffstat (limited to 'src/graphics/RasterDrawMethods.inl')
| -rw-r--r-- | src/graphics/RasterDrawMethods.inl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/graphics/RasterDrawMethods.inl b/src/graphics/RasterDrawMethods.inl index 07b8257..527d249 100644 --- a/src/graphics/RasterDrawMethods.inl +++ b/src/graphics/RasterDrawMethods.inl @@ -386,4 +386,14 @@ void PIXELMETHODS_CLASS::draw_image(pixel *img, int x, int y, int w, int h, int blendpixel(x+i, y+j, r, g, b, a); img++; } +} + +void PIXELMETHODS_CLASS::draw_image(const VideoBuffer & vidBuf, int x, int y, int a) +{ + draw_image(vidBuf.Buffer, x, y, vidBuf.Width, vidBuf.Height, a); +} + +void PIXELMETHODS_CLASS::draw_image(VideoBuffer * vidBuf, int x, int y, int a) +{ + draw_image(vidBuf->Buffer, x, y, vidBuf->Width, vidBuf->Height, a); }
\ No newline at end of file |
